diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-02-19 12:50:55 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-02-20 16:14:07 +0100 |
commit | df4cdd780b279caba38e7267be57ed4182237921 (patch) | |
tree | ee861861926c430d2aae8918d583ec88e76597dc /gbp/git/args.py | |
parent | b9319030c5be2bc602338bf20151bbab081bbea8 (diff) |
Don't use basestring
to work toward Python3 support
Diffstat (limited to 'gbp/git/args.py')
-rw-r--r-- | gbp/git/args.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/git/args.py b/gbp/git/args.py index f9fc64d..6f3dfd0 100644 --- a/gbp/git/args.py +++ b/gbp/git/args.py @@ -18,6 +18,7 @@ Git command argument handling helpers """ +import six import collections class GitArgs(object): @@ -55,7 +56,7 @@ class GitArgs(object): Add arguments to argument list """ for arg in args: - if isinstance(arg, basestring): + if isinstance(arg, six.string_types): self._args.append(arg) elif isinstance(arg, collections.Iterable): for i in iter(arg): |