diff --git a/safaribooks.py b/safaribooks.py
index 1f96b94..c066ffd 100644
--- a/safaribooks.py
+++ b/safaribooks.py
@@ -22,7 +22,6 @@ SAFARI_BASE_HOST = "learning.oreilly.com"
SAFARI_BASE_URL = "https://" + SAFARI_BASE_HOST
-
class Display:
BASE_FORMAT = logging.Formatter(
fmt="[%(asctime)s] %(message)s",
@@ -229,7 +228,7 @@ class SafariBooks:
""
# Format: ID, Title, Authors, Description, Subjects, Publisher, Rights, Date, CoverId, MANIFEST, SPINE, CoverUrl
- CONTENT_OPF = "\n" \
+ CONTENT_OPF = "\n" \
"\n" \
"\n"\
@@ -253,7 +252,7 @@ class SafariBooks:
""
# Format: ID, Depth, Title, Author, NAVMAP
- TOC_NCX = "\n" \
+ TOC_NCX = "\n" \
"\n" \
"\n" \
@@ -1013,11 +1012,11 @@ if __name__ == "__main__":
args_parsed = arguments.parse_args()
if args_parsed.cred:
- cred = SafariBooks.parse_cred(args_parsed.cred)
- if not cred:
+ parsed_cred = SafariBooks.parse_cred(args_parsed.cred)
+ if not parsed_cred:
arguments.error("invalid credential: %s" % args_parsed.cred)
- args_parsed.cred = cred
+ args_parsed.cred = parsed_cred
else:
if args_parsed.no_cookies: