[PATCH 5 of 9 Registration cube] [py3] replace unicode by str

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 12:50:08 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585673950 0
#      Tue Mar 31 16:59:10 2020 +0000
# Node ID f107563b2848ce8619e997760e7f082e425930e0
# Parent  589646b26a8ec8918932ac975a921195ec7d8e38
[py3] replace unicode by str

diff --git a/cubicweb_registration/views.py b/cubicweb_registration/views.py
--- a/cubicweb_registration/views.py
+++ b/cubicweb_registration/views.py
@@ -101,7 +101,7 @@
                     if value is not None:
                         data[field.role_name()] = value
             except ProcessFormError as exc:
-                errors[field.role_name()] = unicode(exc)
+                errors[field.role_name()] = str(exc)
         if errors:
             raise ValidationError(None, errors)
         return data




More information about the cubicweb-devel mailing list