Code cleanup

This commit is contained in:
Bernardo Damele
2010-03-21 00:39:44 +00:00
parent 72f3674844
commit d00e4a458a
10 changed files with 19 additions and 18 deletions

View File

@@ -632,9 +632,9 @@ def __setHTTPAuthentication():
key_file = os.path.expanduser(aCertRegExp.group(1))
cert_file = os.path.expanduser(aCertRegExp.group(2))
for file in (key_file, cert_file):
if not os.path.exists(file):
errMsg = "File '%s' doesn't exist" % file
for ifile in (key_file, cert_file):
if not os.path.exists(ifile):
errMsg = "File '%s' does not exist" % ifile
raise sqlmapSyntaxException, errMsg
authHandler = HTTPSCertAuthHandler(key_file, cert_file)