Make use aenum
instead of the default enum
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# -*- coding: UTF-8 -*-
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import enum
|
||||
import aenum
|
||||
|
||||
|
||||
class FBchatException(Exception):
|
||||
@@ -523,7 +523,7 @@ class Plan(object):
|
||||
def __unicode__(self):
|
||||
return '<Plan ({}): {} time={}, location={}, location_id={}>'.format(self.uid, repr(self.title), self.time, repr(self.location), repr(self.location_id))
|
||||
|
||||
class Enum(enum.Enum):
|
||||
class Enum(aenum.Enum):
|
||||
"""Used internally by fbchat to support enumerations"""
|
||||
def __repr__(self):
|
||||
# For documentation:
|
||||
|
@@ -1,3 +1,3 @@
|
||||
requests
|
||||
beautifulsoup4
|
||||
enum34; python_version < '3.4'
|
||||
aenum
|
||||
|
@@ -43,9 +43,6 @@ include_package_data = True
|
||||
packages = find:
|
||||
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4.0
|
||||
install_requires =
|
||||
aenum
|
||||
requests
|
||||
beautifulsoup4
|
||||
# May not work in pip with bdist_wheel
|
||||
# See https://wheel.readthedocs.io/en/latest/#defining-conditional-dependencies
|
||||
# It is therefore defined in setup.py
|
||||
# enum34; python_version < '3.4'
|
||||
|
Reference in New Issue
Block a user