Export rpmtsEmpty() to python as ts.clear()
authorPanu Matilainen <Panu Matilainen pmatilai@redhat.com>
Thu, 25 Aug 2011 09:02:48 +0000 (12:02 +0300)
committerPanu Matilainen <Panu Matilainen pmatilai@redhat.com>
Thu, 25 Aug 2011 09:21:16 +0000 (12:21 +0300)
commit93639ec8e679e32890ab6f80b5be7913a651634b
tree69a3eab8b16943d50ec0ff34d134e777c04b26f2
parentb37b4fbd48cd78a7749c1b098425db19cf1b8ded
Export rpmtsEmpty() to python as ts.clear()

- Why the heck hasn't this been exported before, duh?
- Method name clear() chosen as this appears to be emerging as a
  standard of sorts for this kind of operation: dictionaries and
  sets have it and list will get it in some python 3.x version.
  Additionally foo.empty() could easily be mistaken for "test whether
  container foo is empty or not" (especially those with c++ background...)
python/rpmts-py.c