pyhashtext: minor cleanups
authorMarko Kreen <markokr@gmail.com>
Thu, 20 Dec 2012 08:53:06 +0000 (10:53 +0200)
committerMarko Kreen <markokr@gmail.com>
Thu, 20 Dec 2012 09:23:43 +0000 (11:23 +0200)
commit7908cf38738c8d918e3d23734b6dac854ff703fa
tree76465a8e8d67114347557da73f83afb9e9e0ac92
parent2d408dd8ee981172bce444164402cf2ce05cd5ec
pyhashtext: minor cleanups

- uppercase constants
- rename loop constants
- add literal value test
- add equality test, just in case 'assert' is disabled
- convert result to non-long int
- no shift when big-endian (in hashtext_new)
python/skytools/pyhashtext.py