aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorJustin Davis2013-12-05 13:17:23 -0800
committerJustin Davis2013-12-05 13:17:23 -0800
commit79596dc613bbf24aac7b5c56179cbc5c46eacdf3 (patch)
tree0e623cdca276b66f342a3e5b1e701aff74962bc8 /setup.py
parent2e36e0c9106ad8de49ce8c169083ec1d09448458 (diff)
downloaddjango-rest-framework-79596dc613bbf24aac7b5c56179cbc5c46eacdf3.tar.bz2
fix setup.py with new __init__.py boilerplate
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 26d07283..1a487f17 100755
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ def get_version(package):
Return package version as listed in `__version__` in `init.py`.
"""
init_py = open(os.path.join(package, '__init__.py')).read()
- return re.match("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
+ return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
def get_packages(package):