ReJeCtAll / naxsi

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

print "Exception catched." SyntaxError: invalid syntax #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install naxsi-0.41
2. upgrade Python to 3.2.1
3. python3 /tmp/naxsi-0.41/contrib/rules_generator/http_config.py --rules 
/usr/local/nginx/conf/naxsi_core.rules -v 3

What is the expected output? What do you see instead?
[root@NGINX01 Python-3.2.1]# python3 -V
Python 3.2
[root@NGINX01 Python-3.2.1]# python3 
/tmp/naxsi-0.41/contrib/rules_generator/http_config.py --rules 
/usr/local/nginx/conf/naxsi_core.rules -v 3
  File "/tmp/naxsi-0.41/contrib/rules_generator/http_config.py", line 22
    print "Exception catched."
                             ^
SyntaxError: invalid syntax

What version of the product are you using? On what operating system?
naxsi-0.41
Linux NGINX01 2.6.32-220.2.1.el6.x86_64 #1 SMP Fri Dec 23 02:21:33 CST 2011 
x86_64 x86_64 x86_64 GNU/Linux
nginx version: nginx/1.0.11

Please provide any additional information below.
I upgraded my python from 2 to 3, then I encountered above issue, can you help?

Original issue reported on code.google.com by vlp...@gmail.com on 24 Dec 2011 at 4:42

GoogleCodeExporter commented 8 years ago
Hi !
I'll try to have a look at this soon. Anyway, HttpConfigPy needs huge work, 
I'll keep you posted ;)

Happy xmas

Original comment by ori...@gmail.com on 26 Dec 2011 at 9:22

GoogleCodeExporter commented 8 years ago
Hello,
new version of http_config.py (in dev version, 
http://code.google.com/p/naxsi/source/browse/trunk/contrib/rules_generator/rules
_transformer.py) should run on both python 2 & 3 now, please let me know if it 
work for you :)

Original comment by ori...@gmail.com on 27 Dec 2011 at 1:09

GoogleCodeExporter commented 8 years ago
Sorry, I mean :
http://code.google.com/p/naxsi/source/browse/trunk/contrib/rules_generator/http_
config.py

Original comment by ori...@gmail.com on 27 Dec 2011 at 1:10

GoogleCodeExporter commented 8 years ago

Original comment by ori...@gmail.com on 27 Dec 2011 at 1:11

GoogleCodeExporter commented 8 years ago
Fixed on trunk, please provide feedback

Original comment by ori...@gmail.com on 3 Jan 2012 at 12:56

GoogleCodeExporter commented 8 years ago
Thanks, will give a try and revert to you. :P

Original comment by vlp...@gmail.com on 3 Jan 2012 at 12:58