Skip to content

Commit

Permalink
issue googleapis#18 raised some issues with python3. I really ought t…
Browse files Browse the repository at this point in the history
…o start

moving this library over to python3 as python2.7 is going away.
python3 is the future, I should get on that boat.

I fixed the way __init__.py works to be compatible with python3. I
also updated all of the intra-library imports to make them all
consistent in style. Passes test for python2, failes for python3.
But as python3 is currently un-supported, that's fine.
  • Loading branch information
Toben Archer committed Jun 16, 2015
1 parent 4b42d0e commit 2d1f2df
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 78 deletions.
16 changes: 8 additions & 8 deletions O365/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@

# This imports all the libraries into the local namespace. This makes it easy to work with.

from contact import Contact
from group import Group
from cal import Calendar
from event import Event
from attachment import Attachment
from inbox import Inbox
from message import Message
from schedule import Schedule
from .contact import Contact
from .group import Group
from .cal import Calendar
from .event import Event
from .attachment import Attachment
from .inbox import Inbox
from .message import Message
from .schedule import Schedule

#To the King!
2 changes: 1 addition & 1 deletion O365/group.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from contact import Contact
from O365.contact import Contact
import logging
import json
import requests
Expand Down
4 changes: 2 additions & 2 deletions O365/message.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from O365 import Attachment
from O365 import Contact
from O365.attachment import Attachment
from O365.contact import Contact
import logging
import json
import requests
Expand Down
2 changes: 1 addition & 1 deletion O365/schedule.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from O365 import Calendar
from O365.cal import Calendar
import logging
import json
import requests
Expand Down
66 changes: 0 additions & 66 deletions tests/requests.py

This file was deleted.

0 comments on commit 2d1f2df

Please sign in to comment.