Files
landsat-util/landsat/decorators.py
Sean Gillies b9f8e52d3c Python 3 is now supported
After I adjusted imports to be absolute, the rest of the work
was sorting out the distinction between bytes and strs. The
uploader was written for strings of bytes and needed to be changed
to actual bytes.

Closes #170
2016-03-25 12:58:34 -06:00

14 lines
289 B
Python

import warnings
import rasterio
def rasterio_decorator(func):
def wrapped_f(*args, **kwargs):
with warnings.catch_warnings():
warnings.simplefilter("ignore")
with rasterio.drivers():
return func(*args, **kwargs)
return wrapped_f