forked from pool/python-pyramid-mako
- Add pyramid2.patch for the compatibility with the new pyramid. - Require pyramid 2 and skip python2 because of it. OBS-URL: https://build.opensuse.org/request/show/909991 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyramid-mako?expand=0&rev=6
19 lines
991 B
Diff
19 lines
991 B
Diff
Index: pyramid_mako-1.1.0/pyramid_mako/fixtures/helloworld.mak
|
|
===================================================================
|
|
--- pyramid_mako-1.1.0.orig/pyramid_mako/fixtures/helloworld.mak
|
|
+++ pyramid_mako-1.1.0/pyramid_mako/fixtures/helloworld.mak
|
|
@@ -1,3 +1,3 @@
|
|
## -*- coding: utf-8 -*-
|
|
-<%!from pyramid.compat import text_%><% a, b = 'foo', text_('föö', 'utf-8') %>
|
|
+<%!from pyramid.util import text_%><% a, b = 'foo', text_('föö', 'utf-8') %>
|
|
Hello ${text_('föö', 'utf-8')}
|
|
Index: pyramid_mako-1.1.0/pyramid_mako/fixtures/helloworld.mako
|
|
===================================================================
|
|
--- pyramid_mako-1.1.0.orig/pyramid_mako/fixtures/helloworld.mako
|
|
+++ pyramid_mako-1.1.0/pyramid_mako/fixtures/helloworld.mako
|
|
@@ -1,3 +1,3 @@
|
|
## -*- coding: utf-8 -*-
|
|
-<%!from pyramid.compat import text_%><% a, b = 'foo', text_('föö', 'utf-8') %>
|
|
+<%!from pyramid.util import text_%><% a, b = 'foo', text_('föö', 'utf-8') %>
|
|
Hello ${text_('föö', 'utf-8')}
|