We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5262e2 commit 21283c4Copy full SHA for 21283c4
src/tue_get/util/grep.py
@@ -2,6 +2,10 @@
2
import os
3
import re
4
5
+"""
6
+Text functions inspired by https://eli.thegreenplace.net/2011/10/19/perls-guess-if-file-is-text-or-binary-implemented-in-python
7
8
+
9
text_characters = b"".join(map(lambda x: bytes((x,)), range(32, 127))) + b"\n\r\t\f\b"
10
_null_trans = bytes.maketrans(b"", b"")
11
0 commit comments