Skip to content

Commit

Permalink
Removed EventType metaclass completely, refs #202
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo13 committed Jan 21, 2017
1 parent 5797ea3 commit 07d8e43
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions circuits/core/events.py
@@ -1,24 +1,12 @@
"""
This module defines the basic event class and common events.
"""


from inspect import ismethod
from traceback import format_tb


class EventType(type):
def __new__(cls, name, bases, ns):
cls = type.__new__(cls, name, bases, ns)
setattr(cls, "name", ns.get("name", cls.__name__))

return cls


class Event(object):

__metaclass__ = EventType

channels = ()
"The channels this message is sent to."

Expand Down

0 comments on commit 07d8e43

Please sign in to comment.