Enforce python 3, remove python 2 workarounds
Hanno Böck

Hanno Böck commited on 2019-11-25 09:26:52
Zeige 1 geänderte Dateien mit 1 Einfügungen und 7 Löschungen.

... ...
@@ -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 26
 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
33 27
 
34 28
 import os
35 29
 import glob
36 30