From 288dcc747bab62ac5957c24b7f1cb6ba9cfb91ed Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Tue, 30 Apr 2019 22:17:05 +0200 Subject: [PATCH] Opraveny Python2 printy. --- .../0011_prevod_autora_z_charField_na_Organizator.py | 8 ++++---- mamweb/wsgi.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/korektury/migrations/0011_prevod_autora_z_charField_na_Organizator.py b/korektury/migrations/0011_prevod_autora_z_charField_na_Organizator.py index dddb07be..9f64bbd5 100644 --- a/korektury/migrations/0011_prevod_autora_z_charField_na_Organizator.py +++ b/korektury/migrations/0011_prevod_autora_z_charField_na_Organizator.py @@ -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): diff --git a/mamweb/wsgi.py b/mamweb/wsgi.py index fa13a197..b2c0c787 100644 --- a/mamweb/wsgi.py +++ b/mamweb/wsgi.py @@ -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()