Opraveny Python2 printy.
This commit is contained in:
parent
f4763a3040
commit
288dcc747b
2 changed files with 5 additions and 5 deletions
|
@ -18,10 +18,10 @@ def transform_autor(apps, schema_editor):
|
|||
oprava.autor_org = org
|
||||
oprava.save()
|
||||
except:
|
||||
print "Org nenalezen -- mažu korekturu"
|
||||
print("Org nenalezen -- mažu korekturu")
|
||||
# oprava.delete()
|
||||
else:
|
||||
print "Org nenalezen -- mažu korekturu"
|
||||
print("Org nenalezen -- mažu korekturu")
|
||||
oprava.delete()
|
||||
|
||||
# preorgovani komentaru
|
||||
|
@ -35,10 +35,10 @@ def transform_autor(apps, schema_editor):
|
|||
komentar.autor_org = org
|
||||
komentar.save()
|
||||
except:
|
||||
print "Org nenalezen -- mažu korekturu"
|
||||
print("Org nenalezen -- mažu korekturu")
|
||||
# oprava.delete()
|
||||
else:
|
||||
print "Org nenalezen -- mažu korekturu"
|
||||
print("Org nenalezen -- mažu korekturu")
|
||||
komentar.delete()
|
||||
|
||||
def back(apps, schema_editor):
|
||||
|
|
|
@ -19,7 +19,7 @@ try:
|
|||
application = get_wsgi_application()
|
||||
|
||||
except Exception:
|
||||
print 'handling WSGI exception'
|
||||
print('handling WSGI exception')
|
||||
# Error loading applications
|
||||
if 'mod_wsgi' in sys.modules:
|
||||
traceback.print_exc()
|
||||
|
|
Loading…
Reference in a new issue