From df4cdd780b279caba38e7267be57ed4182237921 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 19 Feb 2015 12:50:55 +0100 Subject: Don't use basestring to work toward Python3 support --- gbp/git/args.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gbp/git/args.py') 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): -- cgit v1.2.3