Browse code

Enforce python 3, remove python 2 workarounds

Hanno Böck authored on25/11/2019 09:26:52
Showing1 changed files
... ...
@@ -1,4 +1,4 @@
1
-#!/usr/bin/python -tO
1
+#!/usr/bin/python3 -O
2 2
 
3 3
 # freewvs 0.1 - the free web vulnerability scanner
4 4
 #
... ...
@@ -23,13 +23,7 @@
23 23
 # return your changes to the public. We would be especially happy if you tell
24 24
 # us what you're going to do with this code.
25 25
 
26
-try:					# python3
27
-    import configparser
28
-except ImportError:			# python2
29
-    import ConfigParser as configparser
30
-    # overwrite default open() function
31
-    # this one supports encoding='...'
32
-    from codecs import open
26
+import configparser
33 27
 
34 28
 import os
35 29
 import glob