rabin 7 years ago
parent
commit
a860175324
2 changed files with 3 additions and 3 deletions
  1. 2 2
      demeter/core.py
  2. 1 1
      demeter/model.py

+ 2 - 2
demeter/core.py

@@ -100,8 +100,8 @@ class Demeter(object):
 
 	@classmethod
 	def echo(self, args):
-		module = self.getObject('pprint')
-		module.pprint(args)
+		import pprint
+		pprint.pprint(args)
 
 	@classmethod
 	def record(self, key, value):

+ 1 - 1
demeter/model.py

@@ -544,7 +544,7 @@ class Sql(object):
 
 			if val.comment:
 				if self.type == 'mysql':
-					fields.append('COMMENT \'' + val.comment + '\'')
+					fields.append(u'COMMENT \'' + val.comment + '\'')
 				else:
 					comment[key] = val.comment