mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Use print_function to standardize printing between Python 2 and Python 3
This commit is contained in:
parent
cf1ae938fc
commit
d4e5809a29
3 changed files with 13 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
# coding=utf-8
|
||||
from __future__ import with_statement
|
||||
|
||||
from __future__ import print_function, with_statement
|
||||
|
||||
import re
|
||||
import sqlite3
|
||||
|
@ -228,7 +229,7 @@ def _processUpgrade(connection, upgradeClass):
|
|||
try:
|
||||
instance.execute()
|
||||
except sqlite3.DatabaseError, e:
|
||||
print "Error in " + str(upgradeClass.__name__) + ": " + str(e)
|
||||
print("Error in " + str(upgradeClass.__name__) + ": " + str(e))
|
||||
raise
|
||||
logger.log(upgradeClass.__name__ + " upgrade completed", logger.DEBUG)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue