aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/sql/util.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2012-07-14 12:36:40 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2012-07-14 12:55:14 -0500
commit35a24fc26393b4aec1809885884112e35db7afe0 (patch)
tree898837976f291ea69a58d00b200395ea5d975d10 /mediagoblin/db/sql/util.py
parent8a22617ffeebfdce610dac7127d57e0721d3516e (diff)
downloadmediagoblin-35a24fc26393b4aec1809885884112e35db7afe0.tar.lz
mediagoblin-35a24fc26393b4aec1809885884112e35db7afe0.tar.xz
mediagoblin-35a24fc26393b4aec1809885884112e35db7afe0.zip
Moving the "dependency injection printer tools" over to tools/common.py
Diffstat (limited to 'mediagoblin/db/sql/util.py')
-rw-r--r--mediagoblin/db/sql/util.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/mediagoblin/db/sql/util.py b/mediagoblin/db/sql/util.py
index 60024b28..53260db2 100644
--- a/mediagoblin/db/sql/util.py
+++ b/mediagoblin/db/sql/util.py
@@ -19,13 +19,7 @@ import sys
from mediagoblin.db.sql.base import Session
from mediagoblin.db.sql.models import MediaEntry, Tag, MediaTag
-
-def _simple_printer(string):
- """
- Prints a string, but without an auto \n at the end.
- """
- sys.stdout.write(string)
- sys.stdout.flush()
+from mediagoblin.tools.common import simple_printer
class MigrationManager(object):
@@ -37,7 +31,7 @@ class MigrationManager(object):
"""
def __init__(self, name, models, migration_registry, session,
- printer=_simple_printer):
+ printer=simple_printer):
"""
Args:
- name: identifier of this section of the database