/usr/lib/python2.7/dist-packages/rdflib/FileInputSource.py is in python-rdflib 2.4.2-3build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | from xml.sax.xmlreader import InputSource
class FileInputSource(InputSource, object):
def __init__(self, file):
super(FileInputSource, self).__init__(`file`)
self.file = file
self.setByteStream(file)
# TODO: self.setEncoding(encoding)
def __repr__(self):
return `self.file`
|