summaryrefslogtreecommitdiff
path: root/gbp/deb/source.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-02-19 12:50:55 +0100
committerGuido Günther <agx@sigxcpu.org>2015-02-20 16:14:07 +0100
commitdf4cdd780b279caba38e7267be57ed4182237921 (patch)
treeee861861926c430d2aae8918d583ec88e76597dc /gbp/deb/source.py
parentb9319030c5be2bc602338bf20151bbab081bbea8 (diff)
Don't use basestring
to work toward Python3 support
Diffstat (limited to 'gbp/deb/source.py')
-rw-r--r--gbp/deb/source.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gbp/deb/source.py b/gbp/deb/source.py
index 847df55..e523fd5 100644
--- a/gbp/deb/source.py
+++ b/gbp/deb/source.py
@@ -20,6 +20,8 @@ import os
from gbp.deb.format import DebianSourceFormat
from gbp.deb.changelog import ChangeLog
+import six
+
class FileVfs(object):
def __init__(self, dir):
"""
@@ -51,7 +53,7 @@ class DebianSource(object):
"""
self._changelog = None
- if isinstance(vfs, basestring):
+ if isinstance(vfs, six.string_types):
self._vfs = FileVfs(vfs)
else:
self._vfs = vfs