Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
fa7e9c78
Commit
fa7e9c78
authored
Oct 07, 2017
by
Sasank Chilamkurthy
Browse files
Flake 8 fixes
parent
4e9c5c96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
docs/source/conf.py
docs/source/conf.py
+1
-0
setup.py
setup.py
+2
-0
No files found.
docs/source/conf.py
View file @
fa7e9c78
...
@@ -246,4 +246,5 @@ def patched_make_field(self, types, domain, items, **kw):
...
@@ -246,4 +246,5 @@ def patched_make_field(self, types, domain, items, **kw):
fieldbody
=
nodes
.
field_body
(
''
,
bodynode
)
fieldbody
=
nodes
.
field_body
(
''
,
bodynode
)
return
nodes
.
field
(
''
,
fieldname
,
fieldbody
)
return
nodes
.
field
(
''
,
fieldname
,
fieldbody
)
TypedField
.
make_field
=
patched_make_field
TypedField
.
make_field
=
patched_make_field
setup.py
View file @
fa7e9c78
...
@@ -14,6 +14,7 @@ def read(*names, **kwargs):
...
@@ -14,6 +14,7 @@ def read(*names, **kwargs):
)
as
fp
:
)
as
fp
:
return
fp
.
read
()
return
fp
.
read
()
def
find_version
(
*
file_paths
):
def
find_version
(
*
file_paths
):
version_file
=
read
(
*
file_paths
)
version_file
=
read
(
*
file_paths
)
version_match
=
re
.
search
(
r
"^__version__ = ['\"]([^'\"]*)['\"]"
,
version_match
=
re
.
search
(
r
"^__version__ = ['\"]([^'\"]*)['\"]"
,
...
@@ -22,6 +23,7 @@ def find_version(*file_paths):
...
@@ -22,6 +23,7 @@ def find_version(*file_paths):
return
version_match
.
group
(
1
)
return
version_match
.
group
(
1
)
raise
RuntimeError
(
"Unable to find version string."
)
raise
RuntimeError
(
"Unable to find version string."
)
readme
=
open
(
'README.rst'
).
read
()
readme
=
open
(
'README.rst'
).
read
()
VERSION
=
find_version
(
'torchvision'
,
'__init__.py'
)
VERSION
=
find_version
(
'torchvision'
,
'__init__.py'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment