Opened 11 years ago
Closed 11 years ago
#5194 closed defect (fixed)
update autotests to new style imports
Reported by: | Kurt Schwehr | Owned by: | Kurt Schwehr |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | svn-trunk |
Severity: | minor | Keywords: | |
Cc: |
Description (last modified by )
Minor cleanup - update the imports in the autotest python files from:
import gdal import ogr import osr
to
from osgeo import gdal from osgeo import ogr from osgeo import osr
This pretty much does that:
find autotest -name \*.py | xargs -n 1 perl -pi -e "s|^import ogr$|from osgeo import ogr|" find autotest -name \*.py | xargs -n 1 perl -pi -e "s|^import osr$|from osgeo import osr|" find autotest -name \*.py | xargs -n 1 perl -pi -e "s|^import gdal$|from osgeo import gdal|"
Change History (4)
comment:1 by , 11 years ago
Description: | modified (diff) |
---|---|
Owner: | changed from | to
comment:2 by , 11 years ago
Status: | new → assigned |
---|---|
Version: | unspecified → svn-trunk |
Note:
See TracTickets
for help on using tickets.
any objections to this patch?
http://pastebin.com/G8LwEDNX