socoola / appdailysales

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

Warning: 'with' will become a reserved keyword in Python 2.6 #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I ran "python appdailysales.py -f %Y-%m-%d-daily.txt.gz"
2.
3.

What is the expected output? What do you see instead?
I was hoping to see a txt file with a formatted name

What version of the product are you using? On what operating system?
I'm using 2.1 on Ubuntu 8.10 with Python version 2.5.2

Please provide any additional information below.

Original issue reported on code.google.com by mintdesi...@gmail.com on 17 Sep 2010 at 6:19

GoogleCodeExporter commented 8 years ago
Same here, got the same problem. Probably same system. I run Python 2.5.2 with 
2.1 version of the script on ubuntu 8.10 as well.

/usr/bin/python <path trimmed>/appdailysales.py -d 2 -o <path trimmed> -u
<path trimmed>/appdailysales.py:207: Warning: 'with' will become a reserved 
keyword in Python 2.6
  File "<path trimmed>/appdailysales.py", line 207
    with open(os.path.join(options.outputDirectory, 'temp.html'), 
            ^
SyntaxError: invalid syntax

I know nothing about python at all... If there's any quick fix, please share 
here. Thanks a lot!

Original comment by hokc...@gmail.com on 23 Sep 2010 at 5:33

GoogleCodeExporter commented 8 years ago
This has been fixed in the script version 2.2. The latest is in the svn repo. 
I'll package up a .zip for download soon.

Original comment by kirbyt.w...@gmail.com on 23 Sep 2010 at 12:34