/usr/lib/python2.7/dist-packages/obfsproxy/common/argparser.py is in obfsproxy 0.2.12-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 | import argparse
import sys
"""
Overrides argparse.ArgumentParser so that it emits error messages to
stdout instead of stderr.
"""
class MyArgumentParser(argparse.ArgumentParser):
def _print_message(self, message, fd=None):
if message:
fd = sys.stdout
fd.write(message)
|