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