From c18fcf72214ab0c06ae7626b296b54db3229ad41 Mon Sep 17 00:00:00 2001 From: Philipp Weissmann Date: Fri, 3 Oct 2014 08:31:05 +0200 Subject: [PATCH] Fixed python2.6 compatiblity, formating and spelling --- pyicloud/cmdline.py | 1 + pyicloud/services/calendar.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyicloud/cmdline.py b/pyicloud/cmdline.py index b4c17d7..5968dd8 100755 --- a/pyicloud/cmdline.py +++ b/pyicloud/cmdline.py @@ -4,6 +4,7 @@ A Command Line Wrapper to allow easy use of pyicloud for command line scripts, and related. """ +from __future__ import print_function import argparse import pickle diff --git a/pyicloud/services/calendar.py b/pyicloud/services/calendar.py index 47d3403..861a9bf 100644 --- a/pyicloud/services/calendar.py +++ b/pyicloud/services/calendar.py @@ -2,6 +2,7 @@ from __future__ import absolute_import from datetime import datetime, timedelta from calendar import monthrange import time + import pytz @@ -17,9 +18,9 @@ class CalendarService(object): self._calendar_refresh_url = '%s/events' % self._calendar_endpoint self._calendar_event_detail_url = '%s/eventdetail' % self._calendar_endpoint - def get_possible_timezones(self): + def get_all_possible_timezones_of_local_machine(self): """ - Return all possible timezones in Olzon TZ notation + Return all possible timezones in Olson TZ notation This has been taken from http://stackoverflow.com/questions/7669938 """