summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/setup.py b/setup.py
index 83e3b8c..e6f9284 100644
--- a/setup.py
+++ b/setup.py
@@ -17,11 +17,8 @@ except ImportError:
def get_version():
- """parse __init__.py for version number instead of importing the file
-
- see http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
- """
- VERSIONFILE='sqlparse/__init__.py'
+ """Parse __init__.py for version number instead of importing the file."""
+ VERSIONFILE = 'sqlparse/__init__.py'
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r'^__version__ = [\'"]([^\'"]*)[\'"]'
mo = re.search(VSRE, verstrline, re.M)