aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/rotate.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-04-04 08:32:28 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-04-04 08:32:28 -0400
commit48b63f309650af9e43368cf0d6792ea247ad8663 (patch)
tree1c9bbeda525f231bd671c9e9f7ea3c3eedcb5854 /setuptools/command/rotate.py
parent1bf92e3a3cc1e246b1ecc05c63287bb177939efa (diff)
parent9803058dc72867605bdac20d41249c00e8eae415 (diff)
downloadexternal_python_setuptools-48b63f309650af9e43368cf0d6792ea247ad8663.tar.gz
external_python_setuptools-48b63f309650af9e43368cf0d6792ea247ad8663.tar.bz2
external_python_setuptools-48b63f309650af9e43368cf0d6792ea247ad8663.zip
Merge with master
Diffstat (limited to 'setuptools/command/rotate.py')
-rwxr-xr-xsetuptools/command/rotate.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/command/rotate.py b/setuptools/command/rotate.py
index 1b073620..804f962a 100755
--- a/setuptools/command/rotate.py
+++ b/setuptools/command/rotate.py
@@ -3,8 +3,9 @@ from distutils import log
from distutils.errors import DistutilsOptionError
import os
+from setuptools.extern import six
+
from setuptools import Command
-from setuptools.compat import basestring
class rotate(Command):
@@ -36,7 +37,7 @@ class rotate(Command):
self.keep = int(self.keep)
except ValueError:
raise DistutilsOptionError("--keep must be an integer")
- if isinstance(self.match, basestring):
+ if isinstance(self.match, six.string_types):
self.match = [
convert_path(p.strip()) for p in self.match.split(',')
]