Remove redundant open() flags
This commit is contained in:
parent
9141483527
commit
de3d930421
2 changed files with 2 additions and 2 deletions
2
setup.py
2
setup.py
|
|
@ -44,7 +44,7 @@ Authors:
|
|||
"""
|
||||
|
||||
VERSIONFILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "scour", "__init__.py")
|
||||
verstrline = open(VERSIONFILE, "rt").read()
|
||||
verstrline = open(VERSIONFILE).read()
|
||||
VSRE = r"^__version__ = u['\"]([^'\"]*)['\"]"
|
||||
mo = re.search(VSRE, verstrline, re.M)
|
||||
if mo:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue