/usr/lib/python2.7/dist-packages/rdflib/StringInputSource.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 12 13 14 15 | from urllib2 import urlopen, Request
from xml.sax.xmlreader import InputSource
from rdflib import __version__
from StringIO import StringIO
class StringInputSource(InputSource, object):
def __init__(self, value, system_id=None):
super(StringInputSource, self).__init__(system_id)
stream = StringIO(value)
self.setByteStream(stream)
# TODO:
# encoding = value.encoding
# self.setEncoding(encoding)
|