From 57b18fc1153bd98950820364938b2dd8be3784ec Mon Sep 17 00:00:00 2001 From: Adam Hupp Date: Thu, 1 Oct 2020 12:38:17 -0700 Subject: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3ddfc83..fa33f65 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ functionality is exposed to the command line by the Unix command >>> magic.from_file("testdata/test.pdf") 'PDF document, version 1.2' # recommend using at least the first 2048 bytes, as less can produce incorrect identification ->>> magic.from_buffer(open("testdata/test.pdf").read(2048)) +>>> magic.from_buffer(open("testdata/test.pdf", "rb").read(2048)) 'PDF document, version 1.2' >>> magic.from_file("testdata/test.pdf", mime=True) 'application/pdf' -- cgit v1.2.1