Andriy Kornatskyy  committed a7c5b3d

Fixed compatibility issue with python3.2

  • Participants
  • Parent commits c6ecaeb
  • Branches default

Comments (0)

Files changed (1)

             from distutils.errors import DistutilsPlatformError
-            except DistutilsPlatformError, e:
-                self.warn(e)
+            except DistutilsPlatformError:
+                self.warn()
         def build_extension(self, ext):
             from distutils.errors import CCompilerError
             from distutils.errors import DistutilsExecError
                 build_ext.build_extension(self, ext)
-            except (CCompilerError, DistutilsExecError), e:
-                self.warn(e)
+            except (CCompilerError, DistutilsExecError):
+                self.warn()
-        def warn(self, e):
+        def warn(self):
             print(' WARNING '.center(44, '*'))
             print('An optional extension could not be compiled.')
-            print(e)
     extra['cmdclass'] = {'build_ext': build_ext_optional}