Skip to content
Snippets Groups Projects
  1. Dec 11, 2012
  2. Nov 10, 2011
  3. Aug 30, 2011
  4. Aug 25, 2011
  5. Aug 03, 2011
  6. Jun 29, 2010
  7. Jun 28, 2010
    • Guido Trotter's avatar
      Remove pred from compat.any/all · 403f5172
      Guido Trotter authored
      
      This makes it compatible with the python builtin, and we can even use
      the builtin when running under the right version of python. The all and
      any functions are renamed to _all and _any, so that they can be tested,
      and (non)existing unittests are updated (translation: there are no unit
      tests, so none are updated).
      
      This patch also moves the code deciding which partial to use next to
      the definition of the _partial function, rather than after TryToRoman.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      403f5172
  8. Jun 01, 2010
    • Guido Trotter's avatar
      Move roman conversion to compat · 6396164f
      Guido Trotter authored
      
      The new TryToRoman function provides optional easy to use roman
      conversion. Nunc cum demonstrationi unitati.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      6396164f
    • Guido Trotter's avatar
      Move hash functions to the compat module · 716a32cb
      Guido Trotter authored
      
      Since the hash functions' changed their module name between python 2.4
      and 2.6, and we have to do an try/import/except trick, we'll do it just
      once, for both hash functions, and in compat.py. This also fixes a use
      of md5 in the utils unittests which didn't use the trick before, and
      generated a deprecation warning under 2.6.
      
      In compat we keep both a ganeti-wide non-version-specific version to be
      used by other ganeti modules, and a python-version specific that can be
      passed to python modules which expect a hash function for their input
      but call it differently under different versions of python (hmac, for
      example).
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      716a32cb
  9. Apr 21, 2010
Loading