Blame rpm-4.4.2-unicodekey.patch
|
Jeremy Katz |
e6f84e |
--- rpm-4.4.2/python/rpmts-py.c.unicode 2006-12-11 13:32:38.000000000 -0500
|
|
Jeremy Katz |
e6f84e |
+++ rpm-4.4.2/python/rpmts-py.c 2006-12-11 13:33:13.000000000 -0500
|
|
Jeremy Katz |
e6f84e |
@@ -1362,7 +1362,7 @@
|
|
Jeremy Katz |
e6f84e |
|
|
Jeremy Katz |
e6f84e |
if (Key) {
|
|
Jeremy Katz |
e6f84e |
/*@-branchstate@*/
|
|
Jeremy Katz |
e6f84e |
- if (PyString_Check(Key)) {
|
|
Jeremy Katz |
e6f84e |
+ if (PyString_Check(Key) || PyUnicode_Check(Key)) {
|
|
Jeremy Katz |
e6f84e |
key = PyString_AsString(Key);
|
|
Jeremy Katz |
e6f84e |
len = PyString_Size(Key);
|
|
Jeremy Katz |
e6f84e |
} else if (PyInt_Check(Key)) {
|