/usr/lib/python2.7/dist-packages/natsort/compat/pathlib.py is in python-natsort 4.0.3-2.
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 | # -*- coding: utf-8 -*-
from __future__ import (
print_function,
division,
unicode_literals,
absolute_import
)
try:
from pathlib import PurePath # PurePath is the base object for Paths.
except ImportError: # pragma: no cover
PurePath = object # To avoid NameErrors.
has_pathlib = False
else:
has_pathlib = True
|