mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[py3] Replaced basestring by six.string_types.
This commit is contained in:
		| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user