Skip to content

Commit

Permalink
Use ABCMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
bebound committed Nov 14, 2016
1 parent 384d980 commit 330026a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions novel.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from abc import ABCMeta, abstractmethod, abstractstaticmethod
from abc import ABC, abstractmethod, abstractstaticmethod

from bs4 import BeautifulSoup
import requests
from bs4 import BeautifulSoup


class AbstractNovel:
class AbstractNovel(ABC):
"""
abstract novel class
Expand All @@ -23,8 +23,6 @@ class AbstractNovel:
novel_information: A list contains dict which represent the novel information
"""

__metaclass__ = ABCMeta

_HEADERS = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0'}

def __init__(self, url, single_thread=False):
Expand Down

0 comments on commit 330026a

Please sign in to comment.