[entropy.db] EntropyRepository.contentDiff: small python3.x fix

This commit is contained in:
Fabio Erculiani
2011-02-10 18:15:51 +01:00
parent d9d055b64d
commit 65ddc4e412

View File

@@ -1996,6 +1996,8 @@ class EntropyRepository(EntropyRepositoryBase):
# setup random table name
random_str = "%svs%s_%s" % (package_id, id(dbconn),
dbconn_package_id)
if sys.hexversion >= 0x3000000:
random_str = const_convert_to_rawstring(random_str)
randomtable = "cdiff%s" % (hashlib.md5(random_str).hexdigest(),)
# create random table