Skip to content

Issue in found on Python 2.7 #39

Description

@davidfungf

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions