Fix doctest syntax
This also had the power to crash newer pyflakes releases.
This commit is contained in:
parent
a946fa8f0d
commit
5f9641e201
2 changed files with 3 additions and 4 deletions
|
|
@ -383,9 +383,9 @@ class StandardBrowser(mechanize.Browser):
|
|||
|
||||
Example:
|
||||
|
||||
>>> buildurl('/blah.php', ('a', '&'), ('b', '=')
|
||||
>>> StandardBrowser.buildurl('/blah.php', ('a', '&'), ('b', '='))
|
||||
'/blah.php?a=%26&b=%3D'
|
||||
>>> buildurl('/blah.php', a='&', 'b'='=')
|
||||
>>> StandardBrowser.buildurl('/blah.php', a='&', b='=')
|
||||
'/blah.php?b=%3D&a=%26'
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -30,8 +30,7 @@ class ValuesDict(OrderedDict):
|
|||
"""
|
||||
Ordered dictionarry which can take values in constructor.
|
||||
|
||||
>>> ValuesDict(Value('a', label='Test'),
|
||||
ValueInt('b', label='Test2'))
|
||||
>>> ValuesDict(Value('a', label='Test'), ValueInt('b', label='Test2'))
|
||||
"""
|
||||
def __init__(self, *values):
|
||||
OrderedDict.__init__(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue