-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from interline-io/python3fixes
Fix python3 errors
- Loading branch information
Showing
6 changed files
with
31 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from __future__ import absolute_import, unicode_literals | ||
import tempfile | ||
import types | ||
import os | ||
import unittest | ||
|
||
class TestCommandImports(unittest.TestCase): | ||
def test_command_imports(self): | ||
commands = [ | ||
'osm_planet_update=planetutils.osm_planet_update:main', | ||
'osm_planet_extract=planetutils.osm_planet_extract:main', | ||
'osm_planet_get_timestamp=planetutils.osm_planet_get_timestamp:main', | ||
'osm_extract_download=planetutils.osm_extract_download:main', | ||
'elevation_tile_download=planetutils.elevation_tile_download:main', | ||
'elevation_tile_merge=planetutils.elevation_tile_merge:main', | ||
'valhalla_tilepack_download=planetutils.tilepack_download:main', | ||
'valhalla_tilepack_list=planetutils.tilepack_list:main' | ||
] | ||
for i in commands: | ||
a, _, b = i.partition('=')[-1].partition(':') | ||
exec('import %s'%(a)) |