diff options
author | Mark Florisson <markflorisson88@gmail.com> | 2011-07-24 15:15:16 +0200 |
---|---|---|
committer | Mark Florisson <markflorisson88@gmail.com> | 2011-09-30 14:55:17 +0100 |
commit | aad49345e18a162ab0caa332b5379729b76f90fe (patch) | |
tree | b1a1a2d2724f01310316924053c393d6dbf4ad6f /Cython/Compiler/Code.py | |
parent | f0b5aafaf51227f84291733e39e1113a9028752e (diff) | |
download | cython-aad49345e18a162ab0caa332b5379729b76f90fe.tar.gz |
Change memview access and packing modifier constants
Diffstat (limited to 'Cython/Compiler/Code.py')
-rw-r--r-- | Cython/Compiler/Code.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 87d8d5369..f17f08cf6 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -60,7 +60,7 @@ class UtilityCodeBase(object): def _add_utility(cls, utility, type, lines, begin_lineno): if utility: # Remember line numbers as least until after templating - code = '' * begin_lineno + ''.join(lines) + code = '\n' * begin_lineno + ''.join(lines) if type == 'Proto': utility[0] = code @@ -97,10 +97,6 @@ class UtilityCodeBase(object): f.close() for lineno, line in enumerate(all_lines): - # apparently 'line' may be without trailing newline - # (NormalisedNewlineStream.readlines()) - line = line.rstrip() + '\n' - m = re.search(regex, line) if m: cls._add_utility(utility, type, lines, begin_lineno) |