diff options
author | Tobias Brox <tobias@redpill-linpro.com> | 2019-09-10 13:25:44 +0000 |
---|---|---|
committer | Tobias Brox <tobias@redpill-linpro.com> | 2019-09-10 13:25:44 +0000 |
commit | d6848c7c59635334a47bd3d60612cd338fc86b76 (patch) | |
tree | fd0c644aba0f3fb3fab04dcdbc8a215580c48421 | |
parent | c20bafb73ff38787d6db18026eaf3d0f20ee69b8 (diff) | |
download | calendar-cli-d6848c7c59635334a47bd3d60612cd338fc86b76.zip |
let's see if this works with python3 ... ref https://github.com/tobixen/calendar-cli/issues/33
-rwxr-xr-x | calendar-cli.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/calendar-cli.py b/calendar-cli.py index 65ade03..186b1f7 100755 --- a/calendar-cli.py +++ b/calendar-cli.py @@ -1,8 +1,8 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python """ calendar-cli.py - high-level cli against caldav servers -Copyright (C) 2013-2018 Tobias Brox and other contributors +Copyright (C) 2013-2019 Tobias Brox and other contributors This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -36,10 +36,16 @@ import re import urllib3 from getpass import getpass +## ref https://github.com/tobixen/calendar-cli/issues/33, python3-compatibility +try: + raw_input +except NameError: + raw_input = input + __version__ = "0.11.0.dev0" __author__ = "Tobias Brox" __author_short__ = "tobixen" -__copyright__ = "Copyright 2013-2018, Tobias Brox" +__copyright__ = "Copyright 2013-2019, Tobias Brox" #__credits__ = [] __license__ = "GPLv3+" __license_url__ = "http://www.gnu.org/licenses/gpl-3.0-standalone.html" |