summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2014-10-09 19:26:45 +0200
committerStefan Behnel <stefan_ml@behnel.de>2014-10-09 19:26:45 +0200
commit38cb0633dee6cb2e083aee9acef96213f3e2ee3e (patch)
treebc8cfc7bd29851892c620c7efb2fcc53e0143fdb
parentccf535010f741dcc8d610204b5f822724c9a2558 (diff)
downloadcython-38cb0633dee6cb2e083aee9acef96213f3e2ee3e.tar.gz
fix broken name reference (probably after an incomplete refactoring)
--HG-- extra : transplant_source : %5ET%93%08%03d%EFC%C5X%D7%03%28%C4%EF%1DO%CC%1A%7C
-rw-r--r--Cython/Compiler/Main.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py
index 2e8a10249..a9865a949 100644
--- a/Cython/Compiler/Main.py
+++ b/Cython/Compiler/Main.py
@@ -359,10 +359,9 @@ class Context(object):
return ".".join(names)
def setup_errors(self, options, result):
- Errors.reset() # clear any remaining error state
+ Errors.reset() # clear any remaining error state
if options.use_listing_file:
- result.listing_file = Utils.replace_suffix(source, ".lis")
- path = result.listing_file
+ path = result.listing_file = Utils.replace_suffix(result.main_source_file, ".lis")
else:
path = None
Errors.open_listing_file(path=path,