aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-03-22 18:38:14 -0700
committerZac Medico <zmedico@gentoo.org>2012-03-22 18:38:14 -0700
commitfcf73104165536c0789b9e1306a43fca95a0fe43 (patch)
tree8f32cee888282d8d1413630faba398bd42e15178
parentmtimedb: enable JSON write support (diff)
downloadportage-fcf73104165536c0789b9e1306a43fca95a0fe43.tar.gz
portage-fcf73104165536c0789b9e1306a43fca95a0fe43.tar.bz2
portage-fcf73104165536c0789b9e1306a43fca95a0fe43.zip
mtimedb: fix hexversion for python issue 5729
-rw-r--r--pym/portage/util/_dyn_libs/PreservedLibsRegistry.py2
-rw-r--r--pym/portage/util/mtimedb.py2
2 files changed, 2 insertions, 2 deletions
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