opsgenie-python-sdk icon indicating copy to clipboard operation
opsgenie-python-sdk copied to clipboard

Issue in found on Python 2.7

Open davidfungf opened this issue 5 years ago • 0 comments

When I run the sdk on Python 2.7, I have to put the followings in observer.py. Otherwise, error is found.

import sys import abc

if sys.version_info >= (3, 4): ABC = abc.ABC else: ABC = abc.ABCMeta('ABC', (), {})

class Observer(ABC): """ An updating interface for objects, to whom metrics should be published. The published metrics can be accessed in a named tuple at publisher.data in the notify function. """

@abc.abstractmethod
def notify(self, publisher):
    pass

davidfungf avatar Apr 05 '20 02:04 davidfungf