[issue15845] Fixing some byte-to-string conversion warnings

2013-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed. Thank your for report and patch, Alessandro. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue15845] Fixing some byte-to-string conversion warnings

2013-01-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9458a516f769 by Serhiy Storchaka in branch '3.2': Issue #15845: Fix comparison between bytes and string. http://hg.python.org/cpython/rev/9458a516f769 New changeset f6cf2985348a by Serhiy Storchaka in branch '3.3': Issue #15845: Fix comparison betwe

[issue15845] Fixing some byte-to-string conversion warnings

2013-01-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > This will raise an error if curdir is a non-ascii str, so, unless the same > error was already raised later in the code, this is backward incompatible. On all supported platforms curdir is a ascii str (':' on Mac Classic, '.' on all other). The same idiom

[issue15845] Fixing some byte-to-string conversion warnings

2013-01-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15845] Fixing some byte-to-string conversion warnings

2012-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The first bug fixed in issue16696. -- nosy: +pitrou, serhiy.storchaka type: enhancement -> behavior versions: +Python 3.2, Python 3.4 ___ Python tracker _

[issue15845] Fixing some byte-to-string conversion warnings

2012-09-21 Thread Ezio Melotti
Ezio Melotti added the comment: -if basename == '': +if len(basename) == 0: This should be "if not basename:" -if tail == curdir: +cdir = curdir +if isinstance(tail, bytes): +cdir = bytes(curdir, 'ASCII') +if tail == cdir: This will raise an

[issue15845] Fixing some byte-to-string conversion warnings

2012-09-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue15845] Fixing some byte-to-string conversion warnings

2012-09-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Not repeating warnings from the same place is the default warning behavior. You can get all of them by passing -Wall. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue15845] Fixing some byte-to-string conversion warnings

2012-09-01 Thread Alessandro Moura
New submission from Alessandro Moura: This is related to issue 15826. When run with the -b option, some glob.py and os.py functions give warnings due to byte-to-string conversions: amoura@amoura-laptop:~/cpython$ ./python -b -c "import glob; glob.glob(b'cover*/glob.cover')" /home/amoura/cpyt