ubarsc / rios

A raster processing layer on top of GDAL
https://www.rioshome.org
GNU General Public License v3.0
15 stars 8 forks source link

Tidy deprecationWarning, avoiding private Python functions #107

Closed neilflood closed 4 months ago

neilflood commented 4 months ago

A simpler implementation of deprecationWarning(). My earlier one was mostly adapted from warnings.warn(), and made use of a couple of internal Python functions (i.e. starting with underscores), including one which had changed its call signature at some point. So, this new code is simpler, and only uses public Python functions, and thus should be robust into the future.