Skip to content

Commit

Permalink
Remove the useless zope.app.applicationcontrol dependency
Browse files Browse the repository at this point in the history
The getZopeVersion() method called without a path is
pointless, and will always return just "Meaningless".
  • Loading branch information
regebro committed Feb 15, 2016
1 parent 4dcd5d1 commit d723f21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion setup.py
Expand Up @@ -74,7 +74,6 @@ def read(*rnames):
],
extract=[
'zope.tal',
'zope.app.applicationcontrol',
'zope.app.appsetup',
],
),
Expand Down
4 changes: 1 addition & 3 deletions src/zope/app/locales/extract.py
Expand Up @@ -187,9 +187,7 @@ def _getProductVersion(self):
fn = os.path.join(self.path, 'version.txt')
if os.path.exists(fn):
return open(fn, 'r').read().strip()
# Second, try to find a Zope version
from zope.app.applicationcontrol.zopeversion import ZopeVersionUtility
return ZopeVersionUtility.getZopeVersion()
return "Unknown"

def write(self):
file = open(self._output_filename, 'w')
Expand Down

0 comments on commit d723f21

Please sign in to comment.