Skip to content

Commit b084990

Browse files
committed
Fix #243: Application doesn't accept **kwargs anymore.
1 parent 01eca3f commit b084990

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ CHANGES
3535

3636
- Server has 75 seconds keepalive timeout now, was non-keepalive by default.
3737

38+
- Application doesn't accept `**kwargs` anymore (#243).
39+
3840

3941
0.13.1 (12-31-2014)
4042
--------------------

aiohttp/web.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ class Application(dict):
15201520

15211521
def __init__(self, *, logger=web_logger, loop=None,
15221522
router=None, handler_factory=RequestHandlerFactory,
1523-
middlewares=(), **kwargs):
1523+
middlewares=()):
15241524
if loop is None:
15251525
loop = asyncio.get_event_loop()
15261526
if router is None:
@@ -1533,7 +1533,6 @@ def __init__(self, *, logger=web_logger, loop=None,
15331533
self._loop = loop
15341534
self.logger = logger
15351535

1536-
self.update(**kwargs)
15371536
for factory in middlewares:
15381537
assert asyncio.iscoroutinefunction(factory), factory
15391538
self._middlewares = tuple(middlewares)

tests/test_web_functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def find_unused_port(self):
2626

2727
@asyncio.coroutine
2828
def create_server(self, method, path, handler=None):
29-
app = web.Application(loop=self.loop, debug=True)
29+
app = web.Application(loop=self.loop)
3030
if handler:
3131
app.router.add_route(method, path, handler)
3232

tests/test_web_websocket_functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def find_unused_port(self):
3030

3131
@asyncio.coroutine
3232
def create_server(self, method, path, handler=None):
33-
app = web.Application(loop=self.loop, debug=True)
33+
app = web.Application(loop=self.loop)
3434
if handler:
3535
app.router.add_route(method, path, handler)
3636

0 commit comments

Comments
 (0)