Removed a manual file handler pitfall
* Removed a manual file handler pitfall
* Update versioneer.py
Removed trailing space
@@ -1141,12 +1141,11 @@ def do_vcs_install(manifest_in, versionfile_source, ipy):
files.append(versioneer_file)
present = False
try:
- f = open(".gitattributes", "r")
+ with open(".gitattributes", "r") as f:
for line in f.readlines():
if line.strip().startswith(versionfile_source):
if "export-subst" in line.strip().split()[1:]:
present = True
- f.close()
except EnvironmentError:
pass
if not present:
