Fix doctest syntax

This also had the power to crash newer pyflakes releases.
This commit is contained in:
Laurent Bachelier 2013-07-04 00:14:44 +02:00
commit 5f9641e201
2 changed files with 3 additions and 4 deletions

View file

@ -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'
"""

View file

@ -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)