Skip to content
Snippets Groups Projects

Refactor update creation api

Merged Samuel GAIST requested to merge refactor_update_creation_api into master
All threads resolved!
1 file
+ 10
0
Compare changes
  • Side-by-side
  • Inline
+ 10
0
@@ -135,3 +135,13 @@ def ensure_string(data):
return data.decode("utf-8")
return data
return ""
def py3_cmp(a, b):
"""
cmp is not available anymore in Python 3. This method is implemetend
as recommended in the documentation for this kind of use case.
Based on:
https://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons
"""
return (a > b) - (a < b)
Loading