diff options
| author | Adam Hupp <adam@hupp.org> | 2019-12-06 14:44:50 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-06 14:44:50 -0800 |
| commit | cc346b83b55d97eb473599e0f2b5fd355a11b35f (patch) | |
| tree | ce247fe46b8c48ce6380740425264f5fb7fb7eba | |
| parent | 8753c3cf284c1b83eaf0dd0f520400ec7652ee81 (diff) | |
| parent | e25cdf864bd7e83633f2239ff9177a150c8aa53b (diff) | |
| download | python-magic-cc346b83b55d97eb473599e0f2b5fd355a11b35f.tar.gz | |
Merge pull request #199 from maurermax/readme-update
minor update to readme.md file as 1048 bytes are not enough for all m…
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ functionality is exposed to the command line by the Unix command >>> import magic >>> magic.from_file("testdata/test.pdf") 'PDF document, version 1.2' ->>> magic.from_buffer(open("testdata/test.pdf").read(1024)) +>>> magic.from_buffer(open("testdata/test.pdf").read(2048)) # use at least 2048 bytes here for safe detection of for example "xslx" files 'PDF document, version 1.2' >>> magic.from_file("testdata/test.pdf", mime=True) 'application/pdf' |
