Commit 5d6e8a46 authored by Stefan Behnel's avatar Stefan Behnel

Py3 fix

parent 68f94ce2
...@@ -7,7 +7,6 @@ __revision__ = "$Id:$" ...@@ -7,7 +7,6 @@ __revision__ = "$Id:$"
import os import os
import sys import sys
from types import *
import distutils.extension as _Extension import distutils.extension as _Extension
try: try:
...@@ -99,8 +98,10 @@ class Extension(_Extension.Extension): ...@@ -99,8 +98,10 @@ class Extension(_Extension.Extension):
# class Extension # class Extension
# reuse and extend original docstring from base class # reuse and extend original docstring from base class
if _Extension.Extension.__doc__: # -OO discards docstrings if sys.version_info[0] < 3 and _Extension.Extension.__doc__:
# -OO discards docstrings
Extension.__doc__ = _Extension.Extension.__doc__ + """\ Extension.__doc__ = _Extension.Extension.__doc__ + """\
cython_include_dirs : [string] cython_include_dirs : [string]
list of directories to search for Pyrex header files (.pxd) (in list of directories to search for Pyrex header files (.pxd) (in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment