google-code-export / jrfonseca

Automatically exported from code.google.com/p/jrfonseca
0 stars 0 forks source link

New issues for ExpatError #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
###################################################################

File "/home/aimhi/tmp/gprof2dot.py", line 836
    except xml.parsers.expat.ExpatError as e:
                                         ^
SyntaxError: invalid syntax

##################################################################

I got this ! I think "xml.parsers.expat.ExpatError as e" should rewrite 
"xml.parsers.expat.ExpatError, e" !

Original issue reported on code.google.com by jackzzj...@gmail.com on 10 Jul 2013 at 3:45

GoogleCodeExporter commented 9 years ago
What python version are you using?

I think that it needs to be "xml.parsers.expat.ExpatError as e" or python 3 
will be broken.

Python 2.7 should also accept the new syntax.

Original comment by Jose.R.F...@gmail.com on 10 Jul 2013 at 6:35

GoogleCodeExporter commented 9 years ago
I use python 2.5.2 !

Original comment by jackzzj...@gmail.com on 10 Jul 2013 at 7:53

GoogleCodeExporter commented 9 years ago
Please upgrade at least to python 2.6. See 
http://docs.python.org/3/howto/pyporting.html#capturing-the-currently-raised-exc
eption

I've updated http://code.google.com/p/jrfonseca/wiki/Gprof2Dot#Requirements  
too.

Original comment by Jose.R.F...@gmail.com on 10 Jul 2013 at 10:07

GoogleCodeExporter commented 9 years ago
OK, Thanks !

Original comment by jackzzj...@gmail.com on 11 Jul 2013 at 4:04