Skip to content
Snippets Groups Projects
Forked from Hammer / hammer
Loading
  • Alex Willmer's avatar
    Use byte literals in examples and unit tests · 59ba68ef
    Alex Willmer authored
    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.
    59ba68ef
    History