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:
		| @@ -2,13 +2,15 @@ import os | ||||
| import re | ||||
| from subprocess import Popen, PIPE | ||||
|  | ||||
| from django.utils import six | ||||
|  | ||||
| can_run_extraction_tests = False | ||||
| can_run_compilation_tests = False | ||||
|  | ||||
| def find_command(cmd, path=None, pathext=None): | ||||
|     if path is None: | ||||
|         path = os.environ.get('PATH', []).split(os.pathsep) | ||||
|     if isinstance(path, basestring): | ||||
|     if isinstance(path, six.string_types): | ||||
|         path = [path] | ||||
|     # check if there are funny path extensions for executables, e.g. Windows | ||||
|     if pathext is None: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user