Skip to content

Commit 0ff1643

Browse files
author
Glendon Solsberry
committed
Remove unnecessary debugging
1 parent 90a8a0d commit 0ff1643

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

mysql2pgsql/lib/mysql_reader.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import re
44
from contextlib import closing
55

6-
from pprint import pprint
76
import MySQLdb
87
import MySQLdb.cursors
98

@@ -99,7 +98,7 @@ def _convert_type(self, data_type):
9998
return 'boolean'
10099
elif re.search(r'^smallint.* unsigned', data_type) or data_type.startswith('mediumint'):
101100
return 'integer'
102-
elif data_type.startswith('smallint'):
101+
elif data_type.startswith('smallint') or data_type.startswith('binary('):
103102
return 'tinyint'
104103
elif data_type.startswith('tinyint') or data_type.startswith('year('):
105104
return 'tinyint'
@@ -187,7 +186,6 @@ def _load_indexes(self):
187186
def _load_triggers(self):
188187
explain = self.reader.db.query('SHOW TRIGGERS WHERE `table` = \'%s\'' % self.name)
189188
for row in explain:
190-
pprint(row)
191189
if type(row) is tuple:
192190
trigger = {}
193191
trigger['name'] = row[0]

mysql2pgsql/lib/postgres_writer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from cStringIO import StringIO
55
from datetime import datetime, date, timedelta
66

7-
from pprint import pprint
87
from psycopg2.extensions import QuotedString, Binary, AsIs
98
from pytz import timezone
109

@@ -284,7 +283,6 @@ def write_triggers(self, table):
284283
'trigger_event': key['event'],
285284
'trigger_name': key['name']})
286285

287-
print trigger_sql
288286
return trigger_sql
289287

290288
def close(self):

0 commit comments

Comments
 (0)