Use byte literals in examples and unit tests
In Python 2.x an unprefixed string literal produces a byte string. In Python 3.x an unprefixed string literal produces a textual string. To produce a byte string in both a b prefix is needed, e.g. b'foo'. Since I believe Hammer works predominantly with byte strings I have used b prefixes throughout.
Showing
- examples/base64.py 5 additions, 5 deletionsexamples/base64.py
- examples/base64_sem1.py 8 additions, 8 deletionsexamples/base64_sem1.py
- examples/base64_sem2.py 8 additions, 8 deletionsexamples/base64_sem2.py
- src/bindings/python/hammer_tests.py 182 additions, 182 deletionssrc/bindings/python/hammer_tests.py
Loading
Please register or sign in to comment