summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'