From 05e5138b704bae46d05e124a80691bb1aa17b24b Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 5 Jul 2016 08:38:54 +0200 Subject: 2to3 conversion --- app/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/utils.py') diff --git a/app/utils.py b/app/utils.py index 9ee0cf1..73f2b51 100644 --- a/app/utils.py +++ b/app/utils.py @@ -101,7 +101,7 @@ def assert_authorisation(constructor, param): obj = constructor(p) if obj is None: - flash(u"Eintrag existiert nicht!", u'error') + flash("Eintrag existiert nicht!", 'error') return redirect('index') if not hasattr(obj, 'user_id'): @@ -109,7 +109,7 @@ def assert_authorisation(constructor, param): # explicitly use user_id to avoid having to load the user object if obj.user_id != current_user.id: - flash(u"Nicht erlaubte Operation!", u'error') + flash("Nicht erlaubte Operation!", 'error') return redirect('index') else: return f(*args, **kwargs) -- cgit v1.2.3-54-g00ecf