/usr/share/pyshared/ranger/ext/openstruct.py is in ranger 1.6.1-1.
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 | # Copyright (C) 2009-2013 Roman Zimbelmann <hut@lavabit.com>
# This software is distributed under the terms of the GNU GPL version 3.
# prepend __ to arguments because one might use "args"
# or "keywords" as a keyword argument.
class OpenStruct(dict):
"""The fusion of dict and struct"""
def __init__(self, *__args, **__keywords):
dict.__init__(self, *__args, **__keywords)
self.__dict__ = self
|