From: Zac Medico Date: Fri, 23 Mar 2012 01:38:14 +0000 (-0700) Subject: mtimedb: fix hexversion for python issue 5729 X-Git-Tag: v2.2.0_alpha95~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fcf73104165536c0789b9e1306a43fca95a0fe43;p=portage.git mtimedb: fix hexversion for python issue 5729 --- diff --git a/pym/portage/util/_dyn_libs/PreservedLibsRegistry.py b/pym/portage/util/_dyn_libs/PreservedLibsRegistry.py index d3d100f18..26da0cf20 100644 --- a/pym/portage/util/_dyn_libs/PreservedLibsRegistry.py +++ b/pym/portage/util/_dyn_libs/PreservedLibsRegistry.py @@ -38,7 +38,7 @@ class PreservedLibsRegistry(object): "indent": "\t", "sort_keys": True } - if sys.hexversion < 0x3020000: + if sys.hexversion < 0x30200F0: # indent only supports int number of spaces _json_write_opts["indent"] = 4 diff --git a/pym/portage/util/mtimedb.py b/pym/portage/util/mtimedb.py index 736e314d5..30922a901 100644 --- a/pym/portage/util/mtimedb.py +++ b/pym/portage/util/mtimedb.py @@ -32,7 +32,7 @@ class MtimeDB(dict): "indent": "\t", "sort_keys": True } - if sys.hexversion < 0x3020000: + if sys.hexversion < 0x30200F0: # indent only supports int number of spaces _json_write_opts["indent"] = 4