1. 16 Apr, 2019 1 commit
  2. 15 Apr, 2019 1 commit
    • Niels Thykier's avatar
      Rewrite some uses of keys() in if-statements · fb37242e
      Niels Thykier authored
      This rewrites the following statements:
      
          if a in b.keys():
      
      to
      
          if a in b:
      
      At the moment, both variants are cheap (i.e. O(1)) operations.
      However, the 2to3 will blindly rewrite the former into a more
      expensive variant, namely:
      
          if a in list(b.keys()):
      
      Sadly, this becomes O(|b|) as __contains__ on a list is a lot more
      expensive than it is on a directory/set-like structure.
      Signed-off-by: Niels Thykier's avatarNiels Thykier <niels@thykier.net>
      fb37242e
  3. 03 Apr, 2019 1 commit
  4. 27 Jun, 2018 1 commit
  5. 25 May, 2018 1 commit
  6. 23 May, 2018 1 commit
  7. 21 May, 2018 1 commit
  8. 19 May, 2018 2 commits
  9. 18 May, 2018 1 commit
  10. 25 Jun, 2015 1 commit
  11. 24 Jun, 2015 1 commit
  12. 20 May, 2013 1 commit
  13. 29 Apr, 2013 3 commits
  14. 28 Apr, 2013 3 commits
  15. 26 Apr, 2013 4 commits
  16. 04 Nov, 2012 3 commits
  17. 12 Aug, 2012 1 commit
  18. 10 May, 2012 1 commit
    • Ansgar's avatar
      stop using deprecated python-apt functions · 9a4fb568
      Ansgar authored
      Renamed functions and methods:
      
        Find              -> find
        FindB             -> find_b
        newConfiguration  -> Configuration
        ParseCommandLine  -> parse_commandline
        ParseSrcDepends   -> parse_src_depends
        ReadConfigFileISC -> read_config_file_isc
        SubTree           -> subtree
        ValueList         -> value_list
        VersionCompare    -> version_compare
      
      Removed functions:
      
        debExtractControl: replaced with utils.deb_extract_control
      
      Other changes:
      
        x.has_key(y) -> y in x
        x.Find(y)    -> x[y]
      
      The last change was only done in places where `y' is sure to exists (`x.Find'
      would return None otherwise, `x[y]' would raise an exception).
      9a4fb568
  19. 24 Aug, 2011 1 commit
  20. 24 Mar, 2011 1 commit
  21. 23 Mar, 2011 2 commits
  22. 16 Feb, 2011 1 commit
  23. 22 Jan, 2011 1 commit
  24. 18 Jan, 2011 2 commits
  25. 17 Jan, 2011 1 commit
  26. 03 Oct, 2010 3 commits