An error when i switched from python v2.6.6 => v3.2.3

John Gordon gordon at panix.com
Thu Mar 7 10:55:58 EST 2013


In <c2a09443-3c74-477b-af9f-a6f3473ebe88 at googlegroups.com> =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= <nikos.gr33k at gmail.com> writes:

> Switching back to:

> 		os.system( 'python metrites.py > %s' ) % htmltemp
> 		f =3D open( htmltemp )
> 		htmldata =3D f.read()=09

> but still donse see what iam doing wrong.....

You have the close-parentheses in the wrong place.  The line should be:

    os.system( 'python metrites.py > %s' % htmltemp )

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon at panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list