summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTarek Ziade <tarek@ziade.org>2011-05-19 17:07:06 (GMT)
committerTarek Ziade <tarek@ziade.org>2011-05-19 17:07:06 (GMT)
commit2db2d3beeb24685495ec721b78159a8944423639 (patch)
tree199387c31494e081a9b032d9024abf97e8f80756 /Lib
parentc3364529b8ac8e8b42e5934aa2c7d687d5074d66 (diff)
downloadcpython-2db2d3beeb24685495ec721b78159a8944423639.zip
cpython-2db2d3beeb24685495ec721b78159a8944423639.tar.gz
cpython-2db2d3beeb24685495ec721b78159a8944423639.tar.bz2
removed unused method in packaging.create
Diffstat (limited to 'Lib')
-rw-r--r--Lib/packaging/create.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/Lib/packaging/create.py b/Lib/packaging/create.py
index 1df73da..ca82773 100644
--- a/Lib/packaging/create.py
+++ b/Lib/packaging/create.py
@@ -437,19 +437,6 @@ class MainProgram:
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.