1
0
mirror of https://github.com/django/django.git synced 2025-10-28 08:06:09 +00:00

[py3] Replaced basestring by six.string_types.

This commit is contained in:
Aymeric Augustin
2012-07-20 14:22:00 +02:00
parent cacd845996
commit 3cb2457f46
73 changed files with 230 additions and 150 deletions

View File

@@ -27,6 +27,8 @@ import sys
import tarfile
import zipfile
from django.utils import six
class ArchiveException(Exception):
"""
@@ -58,7 +60,7 @@ class Archive(object):
@staticmethod
def _archive_cls(file):
cls = None
if isinstance(file, basestring):
if isinstance(file, six.string_types):
filename = file
else:
try: