Beispiel #1
0
 def probably_binary(self):
     p = not identify.is_text(self.open_file)
     self.open_file.seek(0)
     return p
Beispiel #2
0
def test_is_text(data, expected):
    assert identify.is_text(io.BytesIO(data)) is expected
Beispiel #3
0
 def probably_binary(self):
     p = not identify.is_text(self.open_file)
     self.open_file.seek(0)
     return p