~debian-lptools/debian/sid/lptools/sid

« back to all changes in this revision

Viewing changes to bin/lp-milestone2ical

  • Committer: Jelmer Vernooij
  • Date: 2023-09-28 12:07:22 UTC
  • mfrom: (2.18.8)
  • Revision ID: jelmer@jelmer.uk-20230928120722-704pws90v7e943dk
* New upstream snapshot.
 + Drop patches for conversion to python 3 and breezy; now merged upstream.
+ debian/upstream/metadata: Drop unknown Homepage field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
 
1
#!/usr/bin/python3
2
2
#
3
3
# Author: Rodney Dawes <rodney.dawes@canonical.com>
4
4
#
16
16
# You should have received a copy of the GNU General Public License along
17
17
# with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
 
19
 
from __future__ import with_statement
 
19
 
20
20
 
21
21
import os
22
22
import sys
84
84
        finally:
85
85
            self.__convert_to_ical(lp_project)
86
86
            self.__end_calendar()
87
 
            print self.calendar()
 
87
            print(self.calendar())
88
88
 
89
89
    def run(self):
90
90
        self.thread = Thread(target=self.__login_and_go).start()
99
99
    try:
100
100
        project = sys.argv[1]
101
101
    except IndexError:
102
 
        print "Usage: %s <project>" % sys.argv[0]
 
102
        print("Usage: %s <project>" % sys.argv[0])
103
103
        exit(1)
104
104
 
105
105
    try: