Skip to content

Commit a1cc84b

Browse files
committed
Avoid raw binary data in output
1 parent 335214a commit a1cc84b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example-code.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -482,12 +482,12 @@ def xWrite(self, data, offset):
482482

483483
# Check it really is obfuscated on disk
484484
#@@CAPTURE
485-
print (open("myobfudb", "rb").read()[:20])
485+
print (repr(open("myobfudb", "rb").read()[:20]))
486486
#@@ENDCAPTURE
487487

488488
# And unobfuscating it
489489
#@@CAPTURE
490-
print (encryptme(open("myobfudb", "rb").read()[:20]))
490+
print (repr(encryptme(open("myobfudb", "rb").read()[:20])))
491491
#@@ENDCAPTURE
492492

493493
# Tidy up

0 commit comments

Comments
 (0)