/usr/lib/python3/dist-packages/aiohttp/abc.py is in python3-aiohttp 0.20.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | import asyncio
import sys
from abc import ABCMeta, abstractmethod
PY_35 = sys.version_info >= (3, 5)
class AbstractRouter(metaclass=ABCMeta):
@asyncio.coroutine # pragma: no branch
@abstractmethod
def resolve(self, request):
"""Return MATCH_INFO for given request"""
class AbstractMatchInfo(metaclass=ABCMeta):
@property # pragma: no branch
@abstractmethod
def handler(self):
"""Return handler for match info"""
@property # pragma: no branch
@abstractmethod
def route(self):
"""Return route for match info"""
class AbstractView(metaclass=ABCMeta):
def __init__(self, request):
self._request = request
@property
def request(self):
return self._request
@asyncio.coroutine
@abstractmethod
def __iter__(self):
while False: # pragma: no cover
yield None
if PY_35:
@abstractmethod
def __await__(self):
return
|