Changing filenames from Greeklish => Greek (subprocess complain)

Lele Gaifax lele at metapensiero.it
Thu Jun 6 15:03:02 EDT 2013


Νικόλαος Κούρας <nikos.gr33k at gmail.com> writes:

> ...
> # Load'em
> for fullpath in path:
> 	try:
> ...
>
> The error is:
> [Thu Jun 06 21:10:23 2013] [error] [client 79.103.41.173]   File "files.py", line 64
> [Thu Jun 06 21:10:23 2013] [error] [client 79.103.41.173]     for fullpath in path
> [Thu Jun 06 21:10:23 2013] [error] [client 79.103.41.173]                        ^
> [Thu Jun 06 21:10:23 2013] [error] [client 79.103.41.173] SyntaxError: invalid syntax
>
>
> Doesn't os.listdir( ...) returns a list with all filenames?

You should *read* and *understand* the error message! 

This is the same kind of confusion you had when I pointed you at the
missing closing bracket some day ago, when you missed the meaning of the
error and assume it's source is related to something completely
different...

In the specific case, your line 64 is missing an ending colon (":").

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.




More information about the Python-list mailing list