Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Bobrov <breton@cynicmansion.ru>2016-03-08 17:12:49 +0300
committerBoris Bobrov <breton@cynicmansion.ru>2016-03-08 18:23:45 +0300
commit17aaab69075f33e8e31f5fbf5bcad54882aa244b (patch)
treecc0baca0d256b91e36f6b766336431a5587c677b
parentfec916dfbeedd8798c67a7512147b343dd046f90 (diff)
Fix module name for `gmg alembic` command
gmg_commands.alembic attempted to import from `alembic`. On python2.7 it resulted in import from itself. Rename alembic.py to alembic_commands.py and fix references to gmg_commands.alembic.
-rw-r--r--mediagoblin/gmg_commands/__init__.py4
-rw-r--r--mediagoblin/gmg_commands/alembic_commands.py (renamed from mediagoblin/gmg_commands/alembic.py)0
2 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/gmg_commands/__init__.py b/mediagoblin/gmg_commands/__init__.py
index b2c8cd6b..98b097a6 100644
--- a/mediagoblin/gmg_commands/__init__.py
+++ b/mediagoblin/gmg_commands/__init__.py
@@ -77,8 +77,8 @@ SUBCOMMAND_MAP = {
'func': 'mediagoblin.gmg_commands.batchaddmedia:batchaddmedia',
'help': 'Add many media entries at once'},
'alembic': {
- 'setup': 'mediagoblin.gmg_commands.alembic:parser_setup',
- 'func': 'mediagoblin.gmg_commands.alembic:raw_alembic_cli',
+ 'setup': 'mediagoblin.gmg_commands.alembic_commands:parser_setup',
+ 'func': 'mediagoblin.gmg_commands.alembic_commands:raw_alembic_cli',
'help': (
'Run raw alembic commands with our local database. '
'(Unless you know what you\'re doing, use dbupdate instead!)')},
diff --git a/mediagoblin/gmg_commands/alembic.py b/mediagoblin/gmg_commands/alembic_commands.py
index f255af73..f255af73 100644
--- a/mediagoblin/gmg_commands/alembic.py
+++ b/mediagoblin/gmg_commands/alembic_commands.py