Skip to content

Commit

Permalink
Auto-format
Browse files Browse the repository at this point in the history
  • Loading branch information
aaront committed Jun 16, 2015
1 parent 772b424 commit 7606c9f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mygeotab/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,4 +287,4 @@ def custom_serializer(obj):
return mygeotab.helpers.date_to_iso_str(obj) if hasattr(obj, 'isoformat') else obj


__all__ = ['API', 'Credentials', 'MyGeotabException', 'AuthenticationException']
__all__ = ['API', 'Credentials', 'MyGeotabException', 'AuthenticationException']
3 changes: 2 additions & 1 deletion mygeotab/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import mygeotab
import mygeotab.api


class Session(object):
def __init__(self):
self.credentials = None
Expand Down Expand Up @@ -234,4 +235,4 @@ def main(ctx):
main.add_command(sessions)

if __name__ == '__main__':
main()
main()
3 changes: 2 additions & 1 deletion mygeotab/helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-

from datetime import datetime

import pytz


Expand All @@ -23,4 +24,4 @@ def parse_date(iso_date):
:param iso_date: The date string
:return: The datetime object which represents the ISO 8601 string
"""
return datetime.strptime(iso_date, "%Y-%m-%dT%H:%M:%S.%fZ")
return datetime.strptime(iso_date, "%Y-%m-%dT%H:%M:%S.%fZ")
6 changes: 3 additions & 3 deletions tests/test_helpers.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# -*- coding: utf-8 -*-

import unittest
from datetime import datetime

import pytz

from datetime import datetime

from mygeotab import helpers


Expand Down Expand Up @@ -45,5 +44,6 @@ def test_zoned_datetime_to_utc(self):
self.assertEqual(utc_date.day, check_date.day)
self.assertEqual(utc_date.hour, check_date.hour)


if __name__ == '__main__':
unittest.main()
unittest.main()

0 comments on commit 7606c9f

Please sign in to comment.