On 06/03/2019 17:52, Wei Liu wrote: > @@ -362,11 +362,10 @@ def parse(f): > globs[n] = t > > try: > - execfile(f, globs, locs) > - except SyntaxError,e: > - raise SyntaxError, \ > - "Errors were found at line %d while processing %s:\n\t%s"\ > - %(e.lineno,f,e.text) > + exec(compile(open(f).read(), f, 'exec'), globs, locs) > + except SyntaxError as e: > + raise SyntaxError("Errors were found at line %d while processing > %s:\n\t%s"\ > + %(e.lineno,f,e.text))
As you're editing this, the \ can go, and it would be nice to properly indent the second line. (Even better if we can get spaces in sensible places). Otherwise, Reviewed-by: Andrew Cooper <andrew.coop...@citrix.com> ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel