/usr/share/shedskin/lib/getopt.py is in shedskin 0.9.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 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # Copyright 2005-2011 Mark Dufour and contributors; License Expat (See LICENSE)
import os
class GetoptError(Exception):
def __init__(self, msg, opt=''):
self.msg = msg
self.opt = opt
class error(GetoptError):
pass
def getopt(args, shortopts, longopts = []):
return ([('',)], [''])
def gnu_getopt(args, shortopts, longopts = []):
return ([('',)], [''])
def do_longs(opts, opt, longopts, args):
return ([('',)], [''])
def long_has_args(opt, longopts):
return True, ''
def do_shorts(opts, optstring, shortopts, args):
return ([('',)], [''])
def short_has_arg(opt, shortopts):
return True
|