[Python-checkins] cpython: removed unused method in packaging.create
tarek.ziade
python-checkins at python.org
Thu May 19 19:07:24 CEST 2011
http://hg.python.org/cpython/rev/db9cb445c78f
changeset: 70206:db9cb445c78f
user: Tarek Ziade <tarek at ziade.org>
date: Thu May 19 19:07:06 2011 +0200
summary:
removed unused method in packaging.create
files:
Lib/packaging/create.py | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/Lib/packaging/create.py b/Lib/packaging/create.py
--- a/Lib/packaging/create.py
+++ b/Lib/packaging/create.py
@@ -437,19 +437,6 @@
raise ValueError('Unable to load metadata from setup.py')
return success
- def inspect_file(self, path):
- with open(path, 'r') as fp:
- for _ in range(10):
- line = fp.readline()
- m = re.match(r'^#!.*python((?P<major>\d)(\.\d+)?)?$', line)
- if m:
- if m.group('major') == '3':
- self.classifiers.add(
- 'Programming Language :: Python :: 3')
- else:
- self.classifiers.add(
- 'Programming Language :: Python :: 2')
-
def inspect(self):
"""Inspect the current working diretory for a name and version.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list