diff --git a/lib/parse/configfile.py b/lib/parse/configfile.py
index 006537888..258717c59 100644
--- a/lib/parse/configfile.py
+++ b/lib/parse/configfile.py
@@ -68,7 +68,7 @@ def configFileParser(configFile):
 
     try:
         config = UnicodeRawConfigParser()
-        config.readfp(configFP)
+        config.read_file(configFP)
     except Exception as ex:
         errMsg = "you have provided an invalid and/or unreadable configuration file ('%s')" % getSafeExString(ex)
         raise SqlmapSyntaxException(errMsg)