Commit 9455ae39 authored by Guido Günther's avatar Guido Günther

Add string vs. binary encoding/decoding

for Python3 compatibility
parent af8cbc43
......@@ -82,9 +82,10 @@ class DebianSourceFormat(object):
@returns: a debisn/source/format object
@rtype: L{DebianSourceFormat}
>>> from six import b
>>> import tempfile, os
>>> with tempfile.NamedTemporaryFile(delete=False) as t:
... ret = t.write("3.0 (quilt)")
... ret = t.write(b("3.0 (quilt)"))
>>> d = DebianSourceFormat.parse_file(t.name)
>>> d.version
'3.0'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment