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:
|
Example:
|
||||||
|
|
||||||
>>> buildurl('/blah.php', ('a', '&'), ('b', '=')
|
>>> StandardBrowser.buildurl('/blah.php', ('a', '&'), ('b', '='))
|
||||||
'/blah.php?a=%26&b=%3D'
|
'/blah.php?a=%26&b=%3D'
|
||||||
>>> buildurl('/blah.php', a='&', 'b'='=')
|
>>> StandardBrowser.buildurl('/blah.php', a='&', b='=')
|
||||||
'/blah.php?b=%3D&a=%26'
|
'/blah.php?b=%3D&a=%26'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,7 @@ class ValuesDict(OrderedDict):
|
||||||
"""
|
"""
|
||||||
Ordered dictionarry which can take values in constructor.
|
Ordered dictionarry which can take values in constructor.
|
||||||
|
|
||||||
>>> ValuesDict(Value('a', label='Test'),
|
>>> ValuesDict(Value('a', label='Test'), ValueInt('b', label='Test2'))
|
||||||
ValueInt('b', label='Test2'))
|
|
||||||
"""
|
"""
|
||||||
def __init__(self, *values):
|
def __init__(self, *values):
|
||||||
OrderedDict.__init__(self)
|
OrderedDict.__init__(self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue