removed unused method in packaging.create

This commit is contained in:
Tarek Ziade 2011-05-19 19:07:06 +02:00
parent c3364529b8
commit 2db2d3beeb
1 changed files with 0 additions and 13 deletions

View File

@ -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.