Skip to content

Commit

Permalink
Replace ABCMeta with just ABC
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Feb 20, 2016
1 parent 97168c6 commit c8bf79c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions aiohttp/abc.py
@@ -1,20 +1,20 @@
import asyncio
import sys
from abc import ABCMeta, abstractmethod
from abc import ABC, abstractmethod


PY_35 = sys.version_info >= (3, 5)


class AbstractRouter(metaclass=ABCMeta):
class AbstractRouter(ABC):

@asyncio.coroutine # pragma: no branch
@abstractmethod
def resolve(self, request):
"""Return MATCH_INFO for given request"""


class AbstractMatchInfo(metaclass=ABCMeta):
class AbstractMatchInfo(ABC):

@asyncio.coroutine # pragma: no branch
@abstractmethod
Expand All @@ -36,7 +36,7 @@ def get_info(self):
"""Return a dict with additional info useful for introspection"""


class AbstractView(metaclass=ABCMeta):
class AbstractView(ABC):

def __init__(self, request):
self._request = request
Expand Down
4 changes: 2 additions & 2 deletions aiohttp/protocol.py
Expand Up @@ -7,7 +7,7 @@
import string
import sys
import zlib
from abc import abstractmethod, ABCMeta
from abc import abstractmethod, ABC
from wsgiref.handlers import format_date_time

import aiohttp
Expand Down Expand Up @@ -481,7 +481,7 @@ def filter_pipe(filter, filter2, *,
chunk = yield EOL_MARKER


class HttpMessage(metaclass=ABCMeta):
class HttpMessage(ABC):
"""HttpMessage allows to write headers and payload to a stream.
For example, lets say we want to read file then compress it with deflate
Expand Down
2 changes: 1 addition & 1 deletion aiohttp/web_urldispatcher.py
Expand Up @@ -66,7 +66,7 @@ def _append_query(url, query):
return url


class AbstractRoute(metaclass=abc.ABCMeta):
class AbstractRoute(abc.ABC):
METHODS = hdrs.METH_ALL | {hdrs.METH_ANY}

def __init__(self, method, handler, *,
Expand Down

0 comments on commit c8bf79c

Please sign in to comment.