This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
21 lines
386 B
Python
21 lines
386 B
Python
"""
|
|
Base class for badge backends.
|
|
"""
|
|
|
|
|
|
from abc import ABCMeta, abstractmethod
|
|
|
|
import six
|
|
|
|
|
|
class BadgeBackend(six.with_metaclass(ABCMeta, object)):
|
|
"""
|
|
Defines the interface for badging backends.
|
|
"""
|
|
|
|
@abstractmethod
|
|
def award(self, badge_class, user, evidence_url=None):
|
|
"""
|
|
Create a badge assertion for the user using this backend.
|
|
"""
|