Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in found on Python 2.7 #39

Open
davidfungf opened this issue Apr 5, 2020 · 0 comments
Open

Issue in found on Python 2.7 #39

davidfungf opened this issue Apr 5, 2020 · 0 comments

Comments

@davidfungf
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant