Permalink
Browse files

Force unicode literals to str as per #50.

Implements str cast as suggested by rhyek in issue #50
  • Loading branch information...
1 parent e154119 commit 47fd803e3d99ce60891f1627c4cd1f858807181f @ajford ajford committed Dec 15, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 flask_wtf/__init__.py
View
@@ -46,9 +46,12 @@
__all__ = ['Form', 'ValidationError', 'fields', 'validators', 'widgets', 'html5']
-__all__ += validators.__all__
-__all__ += fields.__all__ if hasattr(fields, '__all__') else fields.core.__all__
-__all__ += widgets.__all__ if hasattr(widgets, '__all__') else widgets.core.__all__
+__all__ += [str(v) for v in validators.__all__ ]
+__all__ += [str(v) for v in (fields.__all__ if hasattr(fields, '__all__') else
+ fields.core.__all__) ]
+
+__all__ += [str(v) for v in (widgets.__all__ if hasattr(widgets, '__all__') else
+ widgets.core.__all__)]
__all__ += recaptcha.__all__
if _is_sqlalchemy:

0 comments on commit 47fd803

Please sign in to comment.