From ffba32baed5b563868f25fd3f0b90011c5daf5a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20Ram=C3=ADrez?= Date: Tue, 19 Sep 2017 14:58:01 -0600 Subject: [PATCH] Rename global variable. --- secretary.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/secretary.py b/secretary.py index 52d6f6c..2e74157 100644 --- a/secretary.py +++ b/secretary.py @@ -37,19 +37,19 @@ from xml.dom.minidom import parseString from xml.parsers.expat import ExpatError, ErrorString from jinja2 import Environment, Undefined, Markup -__PY_MAYOR_VER__ = None +__PY_MAYOR_VERSION__ = None try: - __PY_MAYOR_VER__ = sys.version_info.major + __PY_MAYOR_VERSION__ = sys.version_info.major if sys.version_info.major == 3: xrange = range basestring = (str, bytes) except AttributeError: # On Python 2.6 sys.version_info is a tuple - __PY_MAYOR_VER__ = 2 + __PY_MAYOR_VERSION__ = 2 if not isinstance(sys.version_info, tuple): raise -if __PY_MAYOR_VER__ == 2: +if __PY_MAYOR_VERSION__ == 2: from urllib import unquote else: from urllib.parse import unquote