[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-19 Thread SilentGhost
SilentGhost added the comment: Vladimir, superseder's patch fixes that too. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-19 Thread Vladimir Rutsky
Vladimir Rutsky added the comment: Sorry I was wrong - patch don't fix original issue. Case should be normalized not only for directories provided through --ignore-dir, but also for directories obtained from __file__. In my tests on Windows Ignore.names(self, filename, modulename) receives `f

[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-19 Thread Vladimir Rutsky
Vladimir Rutsky added the comment: SilentGhost, thanks for the patch! I can confirm, that adding os.path.normcase fixes issues with different cases of files. I believe there also may be issue with FAT's long file name mangling, like "C:\PROGRA~1\python26\" instead of "C:\Program Files\python2

[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-15 Thread SilentGhost
Changes by SilentGhost : -- nosy: -SilentGhost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-15 Thread SilentGhost
Changes by SilentGhost : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-14 Thread SilentGhost
SilentGhost added the comment: #10908 is dealing with this and other issue re ignored dirs. -- status: open -> closed superseder: -> Improvements to trace._Ignore ___ Python tracker __

[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-12 Thread SilentGhost
Changes by SilentGhost : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-12 Thread SilentGhost
SilentGhost added the comment: It's due to the os.path.normpath not normalizing case. Here is the patch. Also affects 3.x -- keywords: +patch nosy: +SilentGhost versions: +Python 3.1, Python 3.2 Added file: http://bugs.python.org/file20378/trace.diff __

[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-12 Thread Vladimir Rutsky
Vladimir Rutsky added the comment: Workaround for people on Windows who don't wan't to modify trace.py: to get clean trace of only your project calls add to ignore list python path with mix of character cases. For me worked out this string: python -m trace --ignore-dir=c:\python26\lib;C:\pyth

[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-12 Thread Vladimir Rutsky
Changes by Vladimir Rutsky : Added file: http://bugs.python.org/file20370/test.out ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-12 Thread Vladimir Rutsky
Changes by Vladimir Rutsky : Added file: http://bugs.python.org/file20369/test.cmd ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10896] trace module compares directories as strings (--ignore-dir)

2011-01-12 Thread Vladimir Rutsky
New submission from Vladimir Rutsky : This is code from recent trace.py (http://svn.python.org/view/python/branches/release27-maint/Lib/trace.py?view=markup): trace.py:169: # Ignore a file when it contains one of the ignorable paths for d in self._dirs: # The '+ os.s