forked from github/pelican
Modernize code base to Python 3+ syntax
Replaces syntax that was relevant in earlier Python versions but that now has modernized equivalents.
This commit is contained in:
parent
2cd1d44576
commit
d43b786b30
37 changed files with 104 additions and 171 deletions
|
|
@ -1,5 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import locale
|
||||
|
||||
from jinja2.utils import generate_lorem_ipsum
|
||||
|
|
@ -19,7 +17,7 @@ class TestPage(unittest.TestCase):
|
|||
def setUp(self):
|
||||
super().setUp()
|
||||
self.old_locale = locale.setlocale(locale.LC_ALL)
|
||||
locale.setlocale(locale.LC_ALL, str('C'))
|
||||
locale.setlocale(locale.LC_ALL, 'C')
|
||||
self.page_kwargs = {
|
||||
'content': TEST_CONTENT,
|
||||
'context': {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue