rafasashi / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Python 2.6 required? #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
python 2.6 doesn't come with ubuntu hardy, btw, so we should probably avoid 
depending on it if possible.

$ ./google.py calendar add "Lunch with Jim at noon tomorrow"
./google.py:67: Warning: 'with' will become a reserved keyword in Python 2.6
  File "./google.py", line 67
    with open(options.summary, 'r') as summary_file:
            ^
SyntaxError: invalid syntax

Original issue reported on code.google.com by jh...@google.com on 4 Jun 2010 at 6:06

GoogleCodeExporter commented 9 years ago
Ugh, looks like hardy only comes with this in its python-gdata:

/usr/share/python-support/python-gdata/gdata/docs
/usr/share/python-support/python-gdata/gdata/docs/service.py
/usr/share/python-support/python-gdata/gdata/docs/__init__.py
/usr/share/python-support/python-gdata/gdata/calendar
/usr/share/python-support/python-gdata/gdata/calendar/__init__.py
/usr/share/python-support/python-gdata/gdata/calendar/service.py
/usr/share/python-support/python-gdata/gdata/apps
/usr/share/python-support/python-gdata/gdata/apps/service.py
/usr/share/python-support/python-gdata/gdata/apps/__init__.py
/usr/share/python-support/python-gdata/gdata/service.py
/usr/share/python-support/python-gdata/gdata/base
/usr/share/python-support/python-gdata/gdata/base/__init__.py
/usr/share/python-support/python-gdata/gdata/base/service.py
/usr/share/python-support/python-gdata/gdata/spreadsheet
/usr/share/python-support/python-gdata/gdata/spreadsheet/__init__.py
/usr/share/python-support/python-gdata/gdata/spreadsheet/service.py

Original comment by jh...@google.com on 4 Jun 2010 at 7:11

GoogleCodeExporter commented 9 years ago
And that's weird because docs doesn't work for me.

Original comment by jh...@google.com on 4 Jun 2010 at 7:12

GoogleCodeExporter commented 9 years ago
The docs code in GoogleCL uses the 2.0 version "client" module rather than the 
service 
module, so that makes sense.

I'll write up a version that uses the service module as part of the 
more-backwards-
compatible changes.

Original comment by tom.h.mi...@gmail.com on 5 Jun 2010 at 12:28

GoogleCodeExporter commented 9 years ago
Have you noticed anything else cropping up specific to python2.5? I think you 
nabbed everything in r146

Original comment by tom.h.mi...@gmail.com on 17 Jun 2010 at 2:11

GoogleCodeExporter commented 9 years ago
Seems to be working good in hardy lately.

Original comment by jh...@google.com on 17 Jun 2010 at 7:51