aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-12-09 03:53:38 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-12-09 03:53:38 -0500
commit6840f40ad0cc4df8c98cd8b78f4c86d6200c1b57 (patch)
tree838b1cc011f5f1be25869337089f8e762194ad4e /setuptools/command/egg_info.py
parentebaf4f2547e71247248abc77f9899e2106482646 (diff)
downloadexternal_python_setuptools-6840f40ad0cc4df8c98cd8b78f4c86d6200c1b57.tar.gz
external_python_setuptools-6840f40ad0cc4df8c98cd8b78f4c86d6200c1b57.tar.bz2
external_python_setuptools-6840f40ad0cc4df8c98cd8b78f4c86d6200c1b57.zip
Remove check that would never succeed, because svn_utils always returns an integer and get_svn_revision always returns a non-empty string.
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-xsetuptools/command/egg_info.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 3afd0a45..28aa7994 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -186,9 +186,7 @@ class egg_info(Command):
if self.tag_build:
version += self.tag_build
if self.tag_svn_revision:
- rev = self.get_svn_revision()
- if rev: # is 0 if it's not an svn working copy
- version += '-r%s' % rev
+ version += '-r%s' % self.get_svn_revision()
if self.tag_date:
import time