mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
_find_version appears unused
This commit is contained in:
parent
714211b327
commit
79186baec7
13
setup.py
13
setup.py
|
@ -59,12 +59,13 @@ def _find_library_file(self, library):
|
|||
self.compiler.library_dirs, library)
|
||||
|
||||
|
||||
def _find_version(filename):
|
||||
for line in open(filename).readlines():
|
||||
m = re.search("VERSION\s*=\s*\"([^\"]+)\"", line)
|
||||
if m:
|
||||
return m.group(1)
|
||||
return None
|
||||
# XXX Who or what still uses this?
|
||||
#def _find_version(filename):
|
||||
# for line in open(filename).readlines():
|
||||
# m = re.search("VERSION\s*=\s*\"([^\"]+)\"", line)
|
||||
# if m:
|
||||
# return m.group(1)
|
||||
# return None
|
||||
|
||||
|
||||
def _lib_include(root):
|
||||
|
|
Loading…
Reference in New Issue
Block a user