• Kirill Smelkov's avatar
    *: Don't use %r to print/report lines/bytes to outside · bc608aea
    Kirill Smelkov authored
    %r has different output for strings and bytes on python3:
    
    	In [1]: a = 'hello'
    	In [2]: b = b'hello'
    
    	In [3]: repr(a)
    	Out[3]: "'hello'"
    
    	In [4]: repr(b)
    	Out[4]: "b'hello'"
    
    -> Use qq whose output is stable irregardless of whether input is string or bytes.
    bc608aea
zodbdump.py 17.8 KB