rpm-python only accepts string objects, not unicode
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 13 Mar 2009 07:26:04 +0000 (09:26 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 13 Mar 2009 07:26:04 +0000 (09:26 +0200)
commitc6c8fab76ab014cf311cae6ce1529788cd0da1d0
tree360e08898625b1a0a2c22cfa3eb6d961bcd92c01
parent9317ebc83f611075874713a1099b1f5aa14c969c
rpm-python only accepts string objects, not unicode
- Reverts broken commit 832fe4f01865cd17ab9393fc48b960206da223b0.
  Anything trying to pass in unicode objects is already broken as
  PyString_AsString() uses default encoding for unicode conversions, which
  by default is ascii (at least in python >= 2.5) so any non-ascii string
  will cause it to fail anyway.
- Only accepting strings keeps encoding madness out of rpm, thank you Toshio.
python/rpmts-py.c