Show More
@@ -42,11 +42,11 b' def _string_escape(text):' | |||||
42 | def decodeextra(text): |
|
42 | def decodeextra(text): | |
43 | """ |
|
43 | """ | |
44 | >>> sorted(decodeextra(encodeextra({b'foo': b'bar', b'baz': chr(0) + b'2'}) |
|
44 | >>> sorted(decodeextra(encodeextra({b'foo': b'bar', b'baz': chr(0) + b'2'}) | |
45 |
... ).ite |
|
45 | ... ).items()) | |
46 | [('baz', '\\x002'), ('branch', 'default'), ('foo', 'bar')] |
|
46 | [('baz', '\\x002'), ('branch', 'default'), ('foo', 'bar')] | |
47 | >>> sorted(decodeextra(encodeextra({b'foo': b'bar', |
|
47 | >>> sorted(decodeextra(encodeextra({b'foo': b'bar', | |
48 | ... b'baz': chr(92) + chr(0) + b'2'}) |
|
48 | ... b'baz': chr(92) + chr(0) + b'2'}) | |
49 |
... ).ite |
|
49 | ... ).items()) | |
50 | [('baz', '\\\\\\x002'), ('branch', 'default'), ('foo', 'bar')] |
|
50 | [('baz', '\\\\\\x002'), ('branch', 'default'), ('foo', 'bar')] | |
51 | """ |
|
51 | """ | |
52 | extra = _defaultextra.copy() |
|
52 | extra = _defaultextra.copy() |
General Comments 0
You need to be logged in to leave comments.
Login now