diff --git a/sqlmap.py b/sqlmap.py index 161aa6727..ad1451556 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -60,7 +60,7 @@ def modulePath(): except NameError: _ = inspect.getsourcefile(modulePath) - return getUnicode(os.path.dirname(os.path.realpath(_)), sys.getfilesystemencoding()) + return getUnicode(os.path.dirname(os.path.realpath(_)), encoding=sys.getfilesystemencoding()) def main(): """