/usr/lib/python2.7/dist-packages/rdflib/compat.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 | import sys
if sys.version_info < (2, 4, 1, 'alpha', 1):
def rsplit(value, char=None, count=-1):
# rsplit is not available in Python < 2.4a1
if char is None:
char = ' '
parts = value.split(char)
return [char.join(parts[:-count])] + parts[-count:]
else:
from string import rsplit
|