summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-04-03 18:34:31 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-04-03 18:34:31 -0400
commitc1e0fa598d70a20fdcbdac8f751b6ea33cb9a72b (patch)
tree5ab273302c89c2af63254a55dd57fe4d3e4d6b20
parent82fcc49763c7be2bf358dfd0d7dfc0f8f3d406d3 (diff)
parent362ed0c368ad4cce1eee1bd3d2129a9cf923956a (diff)
downloadpython-setuptools-bitbucket-c1e0fa598d70a20fdcbdac8f751b6ea33cb9a72b.tar.gz
Merge
-rw-r--r--pkg_resources/__init__.py4
-rw-r--r--pkg_resources/_vendor/packaging/specifiers.py2
-rwxr-xr-xsetuptools/command/easy_install.py2
-rwxr-xr-xsetuptools/sandbox.py8
4 files changed, 8 insertions, 8 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index a8a16942..f033c10e 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -2528,7 +2528,7 @@ class Distribution(object):
if not is_legacy:
return
- # While an empty version is techincally a legacy version and
+ # While an empty version is technically a legacy version and
# is not a valid PEP 440 version, it's also unlikely to
# actually come from someone and instead it is more likely that
# it comes from setuptools attempting to parse a filename and
@@ -2542,7 +2542,7 @@ class Distribution(object):
non PEP 440,
version. You may find odd behavior and sort order.
In particular it will be sorted as less than 0.0. It
- is recommend to migrate to PEP 440 compatible
+ is recommended to migrate to PEP 440 compatible
versions.
""").strip().replace('\n', ' ')
diff --git a/pkg_resources/_vendor/packaging/specifiers.py b/pkg_resources/_vendor/packaging/specifiers.py
index 9ad0a635..77516cf4 100644
--- a/pkg_resources/_vendor/packaging/specifiers.py
+++ b/pkg_resources/_vendor/packaging/specifiers.py
@@ -502,7 +502,7 @@ class Specifier(_IndividualSpecifier):
return False
# Ensure that we do not allow a local version of the version mentioned
- # in the specifier, which is techincally greater than, to match.
+ # in the specifier, which is technically greater than, to match.
if prospective.local is not None:
if Version(prospective.base_version) == Version(spec.base_version):
return False
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index f2bfa68d..74803b59 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -152,7 +152,7 @@ class easy_install(Command):
create_index = PackageIndex
def initialize_options(self):
- # the --user option seemst to be an opt-in one,
+ # the --user option seems to be an opt-in one,
# so the default should be False.
self.user = 0
self.zip_ok = self.local_snapshots_ok = None
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py
index 67255123..31e3eb2d 100755
--- a/setuptools/sandbox.py
+++ b/setuptools/sandbox.py
@@ -34,12 +34,12 @@ def _execfile(filename, globals, locals=None):
Python 3 implementation of execfile.
"""
mode = 'rb'
- # Python 2.6 compile requires LF for newlines, so use deprecated
- # Universal newlines support.
- if sys.version_info < (2, 7):
- mode += 'U'
with open(filename, mode) as stream:
script = stream.read()
+ # compile() function in Python 2.6 and 3.1 requires LF line endings.
+ if sys.version_info[:2] < (2, 7) or sys.version_info[:2] >= (3, 0) and sys.version_info[:2] < (3, 2):
+ script = script.replace(b'\r\n', b'\n')
+ script = script.replace(b'\r', b'\n')
if locals is None:
locals = globals
code = compile(script, filename, 'exec')