]> granicus.if.org Git - python/commitdiff
removed unused method in packaging.create
authorTarek Ziade <tarek@ziade.org>
Thu, 19 May 2011 17:07:06 +0000 (19:07 +0200)
committerTarek Ziade <tarek@ziade.org>
Thu, 19 May 2011 17:07:06 +0000 (19:07 +0200)
Lib/packaging/create.py

index 1df73da6f10acf47ebddb448b3cd834e20606711..ca827732d3704abb2c4c323ff075188306390121 100644 (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.