in iostream_test, and
an exception var in tornado.routing that only python2 pyflakes caught
else:
try:
unescaped_fragment = re_unescape(fragment)
- except ValueError as exc:
+ except ValueError:
# If we can't unescape part of it, we can't
# reverse this url.
return (None, None)
def check_append_all_then_skip_all(self, buf, objs, input_type):
self.assertEqual(len(buf), 0)
- total_expected = b''.join(objs)
expected = b''
for o in objs:
self.assertEqual(len(buf), len(expected))
self.check_peek(buf, expected)
- total_size = len(expected)
-
while expected:
n = self.random.randrange(1, len(expected) + 1)
expected = expected[n:]