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
|
|
@ -7,12 +7,12 @@ from pelican.server import ComplexHTTPRequestHandler
|
|||
from pelican.tests.support import unittest
|
||||
|
||||
|
||||
class MockRequest(object):
|
||||
class MockRequest:
|
||||
def makefile(self, *args, **kwargs):
|
||||
return BytesIO(b"")
|
||||
|
||||
|
||||
class MockServer(object):
|
||||
class MockServer:
|
||||
pass
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue