diff options
Diffstat (limited to 'waflib/Tools/msvc.py')
-rw-r--r-- | waflib/Tools/msvc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/waflib/Tools/msvc.py b/waflib/Tools/msvc.py index 522e6e2..662fa61 100644 --- a/waflib/Tools/msvc.py +++ b/waflib/Tools/msvc.py @@ -118,7 +118,7 @@ echo LIB=%%LIB%%;%%LIBPATH%% if conf.logger: conf.logger.error(st) conf.fatal('msvc: Unicode error - check the code page?') - except Exception ,e: + except Exception as e: Logs.debug('msvc: get_msvc_version: %r %r %r -> failure %s',compiler,version,target,str(e)) conf.fatal('msvc: cannot run the compiler in get_msvc_version (run with -v to display errors)') else: @@ -304,7 +304,7 @@ def gather_vswhere_versions(conf,versions): args=[vswhere,'-products','*','-legacy','-format','json'] try: txt=conf.cmd_and_log(args) - except Errors.WafError ,e: + except Errors.WafError as e: Logs.debug('msvc: vswhere.exe failed %s',e) return if sys.version_info[0]<3: |