Skip to content
Snippets Groups Projects
  1. Jan 22, 2013
  2. Dec 27, 2012
  3. Nov 21, 2012
  4. Nov 06, 2012
    • Michael Hanselmann's avatar
      utils.io: Improve handling of double and single slashes · 2826897c
      Michael Hanselmann authored
      
      Up until now “IsBelowDir("/", …)” would never return True. The reason
      was that an additional slash was added to the root path resulting in
      “//", which is “implementation-defined” in posix and treated specially
      by “os.path.normpath”.
      
      This patch fixes the behaviour for this special case and adds tests
      (also for IsNormAbsPath). A typo in the docstring is fixed. Calls to
      “assert_” and “assertFalse” are changed to pass a message by keyword
      argument.
      
      It is a bit of a mess, but I hope the resulting behaviour is correct.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarDato Simó <dato@google.com>
      2826897c
  5. Oct 19, 2012
  6. Oct 05, 2012
  7. Jun 11, 2012
  8. Dec 22, 2011
  9. Dec 08, 2011
  10. Nov 30, 2011
  11. Oct 26, 2011
  12. Sep 05, 2011
  13. Aug 05, 2011
  14. Apr 28, 2011
  15. Apr 13, 2011
  16. Jan 11, 2011
Loading