summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-02-19 12:43:24 +0100
committerGuido Günther <agx@sigxcpu.org>2015-03-27 15:40:32 +0100
commit9455ae3934366f7dcd2586c284d413d6756856a8 (patch)
tree59ba698e3965e5371a9046f1b9ae2ff827e2bf3b
parentaf8cbc43b7d849faaf6caec269018959166ec7dc (diff)
Add string vs. binary encoding/decodingHEADmaster
for Python3 compatibility
-rw-r--r--gbp/deb/format.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/deb/format.py b/gbp/deb/format.py
index a91f8c7..cdfa746 100644
--- a/gbp/deb/format.py
+++ b/gbp/deb/format.py
@@ -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'