summaryrefslogtreecommitdiff
path: root/waflib/Tools/c_preproc.py
diff options
context:
space:
mode:
Diffstat (limited to 'waflib/Tools/c_preproc.py')
-rw-r--r--waflib/Tools/c_preproc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/waflib/Tools/c_preproc.py b/waflib/Tools/c_preproc.py
index 2afeeae..8781b73 100644
--- a/waflib/Tools/c_preproc.py
+++ b/waflib/Tools/c_preproc.py
@@ -653,7 +653,7 @@ class c_parser(object):
elif token=='pragma':
if re_pragma_once.match(line.lower()):
self.ban_includes.add(self.current_file)
- except Exception ,e:
+ except Exception as e:
if Logs.verbose:
Logs.debug('preproc: line parsing failed (%s): %s %s',e,line,traceback.format_exc())
def define_name(self,line):