aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorTom Christie2013-12-09 07:45:45 +0000
committerTom Christie2013-12-09 07:45:45 +0000
commit80ef2685e522fc87bd8af9767aa7b231c9991ea4 (patch)
tree4be3191af2eec42ffea97443c9e9f11ee5631ca7 /setup.py
parent4e9385e709bcee87456a99839841ecf6b56f337a (diff)
parent175b4d233d578b5964db72f91a96bb3b4a0f3e99 (diff)
downloaddjango-rest-framework-80ef2685e522fc87bd8af9767aa7b231c9991ea4.tar.bz2
Merge master
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 96fbc4f4..969b3fc1 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):