diff options
Diffstat (limited to 'pygithub3/resources')
-rw-r--r-- | pygithub3/resources/base.py | 2 | ||||
-rw-r--r-- | pygithub3/resources/users.py | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/pygithub3/resources/base.py b/pygithub3/resources/base.py index 5a9418a..620df3e 100644 --- a/pygithub3/resources/base.py +++ b/pygithub3/resources/base.py @@ -60,7 +60,7 @@ class Resource(object): {attr: parse_date(raw_resource[attr]) for attr in self._dates if attr in raw_resource}) raw_resource.update( - {attr: parse_map(resource , raw_resource[attr]) + {attr: parse_map(resource, raw_resource[attr]) for attr, resource in self._maps.items() if attr in raw_resource}) raw_resource.update( diff --git a/pygithub3/resources/users.py b/pygithub3/resources/users.py index 7e40025..5485bf6 100644 --- a/pygithub3/resources/users.py +++ b/pygithub3/resources/users.py @@ -6,6 +6,12 @@ from .base import Resource __all__ = ('Plan', 'User') +class Key(Resource): + + def __str__(self): + return '<Key (%s)>' % getattr(self, 'title', '') + + class Plan(Resource): def __str__(self): |