You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
"""
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.
"""
The text was updated successfully, but these errors were encountered: