Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 623511b

Browse files
author
Paul Prescod
committed
Added a few docstrings
1 parent 863d8b8 commit 623511b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lib/xml/dom/minidom.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
"""
77
minidom.py -- a lightweight DOM implementation based on SAX.
88
9+
parse( "foo.xml" )
10+
11+
parseString( "<foo><bar/></foo>" )
12+
913
Todo:
1014
=====
1115
* convenience methods for getting elements and text.
@@ -440,7 +444,10 @@ def _doparse( func, args, kwargs ):
440444
return rootNode
441445

442446
def parse( *args, **kwargs ):
447+
"Parse a file into a DOM by filename or file object"
443448
return _doparse( pulldom.parse, args, kwargs )
444449

445450
def parseString( *args, **kwargs ):
451+
"Parse a file into a DOM from a string"
446452
return _doparse( pulldom.parseString, args, kwargs )
453+

0 commit comments

Comments
 (0)