diff options
author | 2012-02-03 14:45:32 +0100 | |
---|---|---|
committer | 2012-02-03 14:46:54 +0100 | |
commit | f01bc94a33d8644da65b5fa895c222e9ee057b50 (patch) | |
tree | 3bfc837901a54f97a30f1d24431d8322906de192 /pygithub3/core/resources/users/user.py | |
parent | Pypi environment by setuptools (diff) | |
download | python-github3-f01bc94a33d8644da65b5fa895c222e9ee057b50.tar.xz python-github3-f01bc94a33d8644da65b5fa895c222e9ee057b50.zip |
Fix imports to new environment
Absolute imports as PEP8 tells
Diffstat (limited to 'pygithub3/core/resources/users/user.py')
-rw-r--r-- | pygithub3/core/resources/users/user.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pygithub3/core/resources/users/user.py b/pygithub3/core/resources/users/user.py new file mode 100644 index 0000000..1399ff8 --- /dev/null +++ b/pygithub3/core/resources/users/user.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- + +from . import Resource +from pygithub3.models.users import User + +__all__ = ('Get', 'Update') + + +class Get(Resource): + + model = User + + def validate(self): + pass + + def set_uri(self): + if self.user: + return 'users/%s' % self.user + else: + return 'user' + + +class Update(Resource): + pass |