Jason R. Coombs avatar Jason R. Coombs committed 7afb9e7

Disable fixers exclusion on Python 2

Comments (0)

Files changed (2)

 Changes
 -------
 
+3.9.2
+~~~~~
+
+* Another attempt to avoid SandboxViolation errors on some Python
+  installations (Python 2 only).
+
+3.9.1
+~~~~~
+
+* Address attribute error for some older versions of distribute and
+  setuptools.
+
 3.9
 ~~~
 
-* dictlib.RangeMap now uses PEP-8 naming. Use `sort_params` and 
+* dictlib.RangeMap now uses PEP-8 naming. Use `sort_params` and
   `key_match_comparator` for
   the constructor and `undefined_value`, `last_item`, and `first_item` class
   attributes.
 	the full list as if distribute had done it, then we can skip the fixers
 	we want to exempt.
 	"""
+	# if we're not on Python 3, do nothing - this routine can cause
+	#  problems, so don't run it if we're not going to need it.
+	if sys.version_info < (3,): return
 	if not hasattr(setuptools, 'lib2to3_fixer_packages'): return
 	names = getattr(setuptools.command.build_py.build_py, 'fixer_names', None) or []
 	from lib2to3.refactor import get_fixers_from_package
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.