Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for Python 3 (and 2) support #10

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

alexandrenorman
Copy link

Hello,
This is an update to make it work with python 3.
Regards,
Alexandre

@sternmotor
Copy link

As far as I can see the failed check states a minor problem, fixed by changing 3 locations in users.py. Could this request be merged then?

+++ seafileapi/user.py  2019-03-21 16:29:34.387256042 +0100
@@ -1,4 +1,7 @@
-from group import Group
+try: 
+    import group
+except ImportError:
+    from . import group
 
 
 class Users(object):
@@ -80,11 +83,11 @@
         return resp.json()
 
     def __get_groups__(self):
-        manage_group = Group(self.client)
+        manage_group = group.Group(self.client)
         return manage_group.get_groups()
 
     def __get_id_from_group_name__(self, group_name):
-        manage_group = Group(self.client)
+        manage_group = group.Group(self.client)
         return manage_group.get_id_from_group_name(group_name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants