Closed felixriese closed 7 years ago
I get for the following code
with spectral.io.envi.read_envi_header(filepath) as f: print(f)
an AttributeError depending on the Python version. This seems to be a problem with the with-statement as pointed out here.
with
Python 3.x error message: AttributeError: __enter__
AttributeError: __enter__
Python 2.x error message: AttributeError: __exit__
AttributeError: __exit__
I get for the following code
an AttributeError depending on the Python version. This seems to be a problem with the
with
-statement as pointed out here.Python 3.x error message:
AttributeError: __enter__
Python 2.x error message:
AttributeError: __exit__