Skip to content

Commit e75c353

Browse files
authored
Merge pull request #3189 from pajod/patch-py36
chore: eat Python 2 leftovers
2 parents 9357b28 + 4f77665 commit e75c353

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+68
-133
lines changed

docs/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# Gunicorn documentation build configuration file
43
#

examples/alt_spec.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -
21
#
32
# An example of how to pass information from the command line to
43
# a WSGI app. Only applies to the native WSGI workers used by

examples/boot_fail.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
raise RuntimeError("Bad app!")
32

43
def app(environ, start_response):

examples/deep/test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -
21
#
32
# This file is part of gunicorn released under the MIT license.
43
# See the NOTICE for more information.

examples/echo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -
21
#
32
# This file is part of gunicorn released under the MIT license.
43
# See the NOTICE for more information.

examples/frameworks/cherryapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import cherrypy
22

33

4-
class Root(object):
4+
class Root:
55
@cherrypy.expose
66
def index(self):
77
return 'Hello World!'

examples/frameworks/django/testing/testing/apps/someapp/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def child_process(queue):
88
requests.get('http://requestb.in/15s95oz1')
99

1010

11-
class GunicornSubProcessTestMiddleware(object):
11+
class GunicornSubProcessTestMiddleware:
1212
def __init__(self):
1313
super().__init__()
1414
self.queue = Queue()

examples/frameworks/tornadoapp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -
21
#
32
# This file is part of gunicorn released under the MIT license.
43
# See the NOTICE for more information.

examples/longpoll.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -
21
#
32
# This file is part of gunicorn released under the MIT license.
43
# See the NOTICE for more information.
@@ -7,7 +6,7 @@
76
import sys
87
import time
98

10-
class TestIter(object):
9+
class TestIter:
1110

1211
def __iter__(self):
1312
lines = [b'line 1\n', b'line 2\n']

examples/multiapp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -
21
#
32
# This file is part of gunicorn released under the MIT license.
43
# See the NOTICE for more information.
@@ -25,7 +24,7 @@
2524
from test import app as app2
2625

2726

28-
class Application(object):
27+
class Application:
2928
def __init__(self):
3029
self.map = Mapper()
3130
self.map.connect('app1', '/app1url', app=app1)

0 commit comments

Comments
 (0)