Commit fa7e9c78 authored by Sasank Chilamkurthy's avatar Sasank Chilamkurthy
Browse files

Flake 8 fixes

parent 4e9c5c96
......@@ -246,4 +246,5 @@ def patched_make_field(self, types, domain, items, **kw):
fieldbody = nodes.field_body('', bodynode)
return nodes.field('', fieldname, fieldbody)
TypedField.make_field = patched_make_field
......@@ -14,6 +14,7 @@ def read(*names, **kwargs):
) as fp:
return fp.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
......@@ -22,6 +23,7 @@ def find_version(*file_paths):
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
readme = open('README.rst').read()
VERSION = find_version('torchvision', '__init__.py')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment