[issue16223] untokenize returns a string if no encoding token is recognized

2013-07-07 Thread Tomasz Maćkowiak
Tomasz Maćkowiak added the comment: Attached is a patch for untokenize, it's tests and docs and some minor pep8 improvements. The patch should fix unicode output and some corner cases handling in untokenize. -- ___ Python tracker rep

[issue16223] untokenize returns a string if no encoding token is recognized

2013-07-07 Thread Tomasz Maćkowiak
Changes by Tomasz Maćkowiak kur...@kurazu.net: -- keywords: +patch Added file: http://bugs.python.org/file30838/bug16223.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16223

[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c

2013-07-07 Thread Tomasz Maćkowiak
Tomasz Maćkowiak added the comment: Attached patch with renamed test methods (as per Brett's review). -- Added file: http://bugs.python.org/file30840/bug18342_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342

[issue16223] untokenize returns a string if no encoding token is recognized

2013-07-07 Thread Tomasz Maćkowiak
Tomasz Maćkowiak added the comment: Attached corrected ('^' and '$' for regexp in tests) patch. -- Added file: http://bugs.python.org/file30841/bug16223_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16223

[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c

2013-07-06 Thread Tomasz Maćkowiak
Tomasz Maćkowiak added the comment: Attaching a test case and a patch for formatting the module name with PyObject_Repr() not PyObject_Str(). -- keywords: +patch nosy: +kurazu Added file: http://bugs.python.org/file30794/bug18342.patch ___ Python

[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c

2013-07-06 Thread Tomasz Maćkowiak
Tomasz Maćkowiak added the comment: Attaching a modified patch with assertRaisesRegexp used. -- Added file: http://bugs.python.org/file30796/bug18342_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342

[issue6671] webbrowser doesn't respect xfce default browser

2013-07-06 Thread Tomasz Maćkowiak
Tomasz Maćkowiak added the comment: My Xubuntu 13.04 has the same variables: 'XDG_CURRENT_DESKTOP': 'XFCE' 'DESKTOP_SESSION': 'xubuntu' as well as 'GDMSESSION': 'xubuntu' -- nosy: +kurazu ___ Python tracker rep...@bugs.python.org http

[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c

2013-07-06 Thread Tomasz Maćkowiak
Tomasz Maćkowiak added the comment: Attached a corrected patch with regexps modified. -- Added file: http://bugs.python.org/file30806/bug18342_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342

[issue16223] untokenize returns a string if no encoding token is recognized

2013-07-06 Thread Tomasz Maćkowiak
Tomasz Maćkowiak added the comment: untokenize has also some other problems, especially when it is using compat - it will skip first significant token, if ENCODING token is not present in input. For example for input like this (code simplified): tokens = tokenize(b1 + 2) untokenize(tokens[1

[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c

2013-07-06 Thread Tomasz Maćkowiak
Tomasz Maćkowiak added the comment: Signed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342 ___ ___ Python-bugs-list mailing list