Commit dab5ac36 authored by Martín Gaitán's avatar Martín Gaitán

applying DRY on cython vs Cython

import the ``cython`` as module (no run  as a program)::

   >>> import cython

do the same than::

   >>> import Cython

But the same code was repeated in both places.
parent 99a593e0
......@@ -8,7 +8,7 @@ if __name__ == '__main__':
import os
import sys
# Make sure we import the right Cython
cythonpath, _ = os.path.split(os.path.realpath(__file__))
sys.path.insert(0, cythonpath)
......@@ -17,7 +17,4 @@ if __name__ == '__main__':
main(command_line = 1)
else:
# Void cython.* directives.
from Cython.Shadow import *
## and bring in the __version__
from Cython import __version__
from Cython import *
\ No newline at end of file
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