-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/08/2014 08:48 AM, Winston Ferreira wrote: > File "/home/winston/projects/Python-3.3.4/lib/python3.3/tokenize.py", > line 527, in _tokenize if line[pos] in '#\r\n': # skip > comments or blank lines TypeError: 'in <string>' requires string as > left operand, not int
It looks as though the file is being opened in binary mode, rather than text mode, which makes 'line' a bytes object in Py3K. Wichert has made a bunch of changes to that code in 'lingua' since the 1.6 release: maybe he can suggest a workaround (or make a new release). Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 [email protected] Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlMbTlkACgkQ+gerLs4ltQ7GhwCgqhsJWLhQmNt+YnPpRoT4cl8G K9MAoLn/H73nN1jqmTCnpapp3iq2kYgM =ap2j -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
