Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions tika/tika.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
detected = detector.from_buffer('some buffered content', config_path='/path/to/configfile')

'''
import types

USAGE = """
tika.py [-v] [-e] [-o <outputDir>] [--server <TikaServerEndpoint>] [--install <UrlToTikaServerJar>] [--port <portNumber>] <command> <option> <urlOrPathToFile>
Expand Down Expand Up @@ -723,12 +722,7 @@ def toFilename(url):


def _is_file_object(f):
try:
file_types = (types.FileType, io.IOBase)
except AttributeError:
file_types = (io.IOBase,)

return isinstance(f, file_types)
return isinstance(f, io.IOBase)


def _urlretrieve(
Expand Down