Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix #310, Python 3 bug introduced in 81990bc. Thanks Abhishek Sarkar …

…for the report.
  • Loading branch information...
commit b17c75c9a2554bab6defe5969d191876f16db5da 1 parent 243ddc8
@carljm carljm authored
Showing with 27 additions and 24 deletions.
  1. +23 −23 virtualenv.py
  2. +4 −1 virtualenv_embedded/distutils-init.py
View
46 virtualenv.py
@@ -2253,29 +2253,29 @@ def convert(s):
##file distutils-init.py
DISTUTILS_INIT = convert("""
-eJytV1uL4zYUftevOE0ottuMW9q3gVDo7lKGLtuyDJQyDEZjK4k6jmQkJTPZX99zLF8k25nuQwNh
-FJ37d24aeWy0caAtk/5kL8PxhRsl1d5Cf4F/+qNuSl0JWPcHaUFpBxzO0rgTr4U6w1FXp1pswGp4
-EVByBSeLnA6chp1UFbiDAOuqWj4xiD5ruGvNcOW+gXsU1+YZtILm0lw2KIbWjifr4EmgRW8Gb7kD
-I6yshAWpSPlMK1q6aS7uoNUPKCV3UlQ3r/kl/wKVNKJ02lwYw6PiRwFbRCVvuDvk3Q2RrDs5WduC
-7gOOf7RU6YQ99dDkRbGTtSiKbAPJoCDJmNwN4kqbIx3S2EAG25kT6Uxm0J/dtgH3acvpkA4YrO4R
-7SA7gyloePnM9wilg28t8KYR3FhKEsLrgQRLgNS65E5iGrj1lxfrxHFU9MsqY6K2wrtRtCEURS6V
-FcalP25gEl3LZgSvi9GXLRVZXmteFT6v6aoYnR4ZVxv4pJWY6txAmiSIM35Jz5+//1a8v/v84d39
-H5//zrzBNbzTzaUNwIhanLHGMHJn5NPJCdu5bsRZWgy1KNCj2MU8pHbsZ2Gucw9ExnZGB3hB10t0
-sSE0S612cs+YMxeP4RO3wqJras/EaykaB58wER+M0WbKgJbxwNh6jfl05QGeTrKuCvHqYKwqqLSw
-KnHwrPQLHPCLWd4L16KBzWGDPvCKDtR2L9is+sXCDTXvgZuK6trXALFgzRh96vq5NS4qCidvjNjJ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Z8ZqOBU0yLvpuP6+K9hLFsvIjeNhBi0KL
+MlOuWRn3FRwx5oHXjl0YImUx0+gLzjGchrgzca026ETmYJzPD+IpuKzNi8AFn048Thd63OdD86M6
+84zE8yQm0VqXdbbgvub2pKVnS76icBGdeTHHXTKspUmr4NYo/furFLKiMdQzFjHJNcdAnMhltBJK
+0/IKX3DVFqvPJ2dLE7bDBkH0l/PJ29074+F0CsGYOxsb7U3myTUncYfXqnLLfa6sJybX4g+hmcjO
+kMRBfA1JellfRRKJcyRpxdS4rIl6FdmQCWjo/o9Qz7yKffoP4JHjOvABcRn4CZIT2RH4jnxmfpVG
+qgLaAvQBNfuO6X0/Ux02nb4FKx3vgP+XnkX0QW9pLy/NsXgdN24dD3LxO2Nwil7Zlc1dqtP3d7/h
+kzp1/+7hGBuY4pk0XD/0Ao/oTe/XGrfyM773aB7iUhgkpy+dwAMalxMP0DrBcsVw/6p25+/hobP9
+GBknrWExDhLJ1bwt1NcCNblaFbMKCyvmX0PeRaQ=
""")
##file distutils.cfg
View
5 virtualenv_embedded/distutils-init.py
@@ -16,7 +16,10 @@
__path__.insert(0, distutils_path)
real_distutils = imp.load_module("_virtualenv_distutils", None, distutils_path, ('', '', imp.PKG_DIRECTORY))
# Copy the relevant attributes
- __revision__ = real_distutils.__revision__
+ try:
+ __revision__ = real_distutils.__revision__
+ except AttributeError:
+ pass
__version__ = real_distutils.__version__
from distutils import dist, sysconfig
Please sign in to comment.
Something went wrong with that request. Please try again.