HuberR67 / patator

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

"with " problem #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
oscam:~# ./p
./p:906: Warning: 'with' will become a reserved keyword in Python 2.6
  File "./p", line 906
    with open(log_file, 'w') as f:
            ^
SyntaxError: invalid syntax

any ideea?
thanks

Original issue reported on code.google.com by wesleyd...@gmail.com on 5 Jan 2012 at 3:20

GoogleCodeExporter commented 9 years ago
As stated in the README you need python version 2.6.6 to run patator. Maybe you 
are using an older version.

Original comment by lanjelot@gmail.com on 5 Jan 2012 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by lanjelot@gmail.com on 5 Jan 2012 at 3:32

GoogleCodeExporter commented 9 years ago
i have python 3.x.x and i have the same problem. any news about this?

Original comment by nialu...@gmail.com on 4 Apr 2012 at 11:35

GoogleCodeExporter commented 9 years ago
yup, i have just ported patator to python3, it should work now although it was 
not thoroughly tested. 

Also, please note that some modules wont work with python3 anyway because their 
3rd-party dependency has not been ported to python3 yet (eg. paramiko, 
impacket, ...)

Original comment by lanjelot@gmail.com on 9 Apr 2012 at 9:29