[damned-lies] Add one more unicode_literals
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Add one more unicode_literals
- Date: Wed, 16 Nov 2016 18:47:48 +0000 (UTC)
commit 87a635a4e3b027858b48e50c06f00b8a762fbde1
Author: Claude Paroz <claude 2xlibre net>
Date: Wed Nov 16 19:46:43 2016 +0100
Add one more unicode_literals
vertimus/forms.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vertimus/forms.py b/vertimus/forms.py
index ec8b04c..302a9f2 100644
--- a/vertimus/forms.py
+++ b/vertimus/forms.py
@@ -17,6 +17,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import unicode_literals
import os
@@ -56,7 +57,7 @@ class AuthorWidget(forms.Select):
label = ugettext("%(name)s (email missing)") % {'name': label}
elif val in selected_choices:
selected_html = ' selected'
- output.append(format_html(u'<option value="{0}"{1}>{2}</option>',
+ output.append(format_html('<option value="{0}"{1}>{2}</option>',
val, selected_html, label))
return '\n'.join(output)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]