✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.77
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /lib64/python2.7/test//test_argparse.py
# Author: Steven J. Bethard <steven.bethard@gmail.com>.

import codecs
import inspect
import os
import shutil
import stat
import sys
import textwrap
import tempfile
import unittest
import argparse

from StringIO import StringIO

class StdIOBuffer(StringIO):
    pass

from test import test_support

class TestCase(unittest.TestCase):

    def assertEqual(self, obj1, obj2):
        if obj1 != obj2:
            print('')
            print(repr(obj1))
            print(repr(obj2))
            print(obj1)
            print(obj2)
        super(TestCase, self).assertEqual(obj1, obj2)

    def setUp(self):
        # The tests assume that line wrapping occurs at 80 columns, but this
        # behaviour can be overridden by setting the COLUMNS environment
        # variable.  To ensure that this assumption is true, unset COLUMNS.
        env = test_support.EnvironmentVarGuard()
        env.unset("COLUMNS")
        self.addCleanup(env.__exit__)


class TempDirMixin(object):

    def setUp(self):
        self.temp_dir = tempfile.mkdtemp()
        self.old_dir = os.getcwd()
        os.chdir(self.temp_dir)

    def tearDown(self):
        os.chdir(self.old_dir)
        for root, dirs, files in os.walk(self.temp_dir, topdown=False):
            for name in files:
                os.chmod(os.path.join(self.temp_dir, name), stat.S_IWRITE)
        shutil.rmtree(self.temp_dir, True)

    def create_readonly_file(self, filename):
        file_path = os.path.join(self.temp_dir, filename)
        with open(file_path, 'w') as file:
            file.write(filename)
        os.chmod(file_path, stat.S_IREAD)

class Sig(object):

    def __init__(self, *args, **kwargs):
        self.args = args
        self.kwargs = kwargs


class NS(object):

    def __init__(self, **kwargs):
        self.__dict__.update(kwargs)

    def __repr__(self):
        sorted_items = sorted(self.__dict__.items())
        kwarg_str = ', '.join(['%s=%r' % tup for tup in sorted_items])
        return '%s(%s)' % (type(self).__name__, kwarg_str)

    __hash__ = None

    def __eq__(self, other):
        return vars(self) == vars(other)

    def __ne__(self, other):
        return not (self == other)


class ArgumentParserError(Exception):

    def __init__(self, message, stdout=None, stderr=None, error_code=None):
        Exception.__init__(self, message, stdout, stderr)
        self.message = message
        self.stdout = stdout
        self.stderr = stderr
        self.error_code = error_code


def stderr_to_parser_error(parse_args, *args, **kwargs):
    # if this is being called recursively and stderr or stdout is already being
    # redirected, simply call the function and let the enclosing function
    # catch the exception
    if isinstance(sys.stderr, StdIOBuffer) or isinstance(sys.stdout, StdIOBuffer):
        return parse_args(*args, **kwargs)

    # if this is not being called recursively, redirect stderr and
    # use it as the ArgumentParserError message
    old_stdout = sys.stdout
    old_stderr = sys.stderr
    sys.stdout = StdIOBuffer()
    sys.stderr = StdIOBuffer()
    try:
        try:
            result = parse_args(*args, **kwargs)
            for key in list(vars(result)):
                if getattr(result, key) is sys.stdout:
                    setattr(result, key, old_stdout)
                if getattr(result, key) is sys.stderr:
                    setattr(result, key, old_stderr)
            return result
        except SystemExit:
            code = sys.exc_info()[1].code
            stdout = sys.stdout.getvalue()
            stderr = sys.stderr.getvalue()
            raise ArgumentParserError("SystemExit", stdout, stderr, code)
    finally:
        sys.stdout = old_stdout
        sys.stderr = old_stderr


class ErrorRaisingArgumentParser(argparse.ArgumentParser):

    def parse_args(self, *args, **kwargs):
        parse_args = super(ErrorRaisingArgumentParser, self).parse_args
        return stderr_to_parser_error(parse_args, *args, **kwargs)

    def exit(self, *args, **kwargs):
        exit = super(ErrorRaisingArgumentParser, self).exit
        return stderr_to_parser_error(exit, *args, **kwargs)

    def error(self, *args, **kwargs):
        error = super(ErrorRaisingArgumentParser, self).error
        return stderr_to_parser_error(error, *args, **kwargs)


class ParserTesterMetaclass(type):
    """Adds parser tests using the class attributes.

    Classes of this type should specify the following attributes:

    argument_signatures -- a list of Sig objects which specify
        the signatures of Argument objects to be created
    failures -- a list of args lists that should cause the parser
        to fail
    successes -- a list of (initial_args, options, remaining_args) tuples
        where initial_args specifies the string args to be parsed,
        options is a dict that should match the vars() of the options
        parsed out of initial_args, and remaining_args should be any
        remaining unparsed arguments
    """

    def __init__(cls, name, bases, bodydict):
        if name == 'ParserTestCase':
            return

        # default parser signature is empty
        if not hasattr(cls, 'parser_signature'):
            cls.parser_signature = Sig()
        if not hasattr(cls, 'parser_class'):
            cls.parser_class = ErrorRaisingArgumentParser

        # ---------------------------------------
        # functions for adding optional arguments
        # ---------------------------------------
        def no_groups(parser, argument_signatures):
            """Add all arguments directly to the parser"""
            for sig in argument_signatures:
                parser.add_argument(*sig.args, **sig.kwargs)

        def one_group(parser, argument_signatures):
            """Add all arguments under a single group in the parser"""
            group = parser.add_argument_group('foo')
            for sig in argument_signatures:
                group.add_argument(*sig.args, **sig.kwargs)

        def many_groups(parser, argument_signatures):
            """Add each argument in its own group to the parser"""
            for i, sig in enumerate(argument_signatures):
                group = parser.add_argument_group('foo:%i' % i)
                group.add_argument(*sig.args, **sig.kwargs)

        # --------------------------
        # functions for parsing args
        # --------------------------
        def listargs(parser, args):
            """Parse the args by passing in a list"""
            return parser.parse_args(args)

        def sysargs(parser, args):
            """Parse the args by defaulting to sys.argv"""
            old_sys_argv = sys.argv
            sys.argv = [old_sys_argv[0]] + args
            try:
                return parser.parse_args()
            finally:
                sys.argv = old_sys_argv

        # class that holds the combination of one optional argument
        # addition method and one arg parsing method
        class AddTests(object):

            def __init__(self, tester_cls, add_arguments, parse_args):
                self._add_arguments = add_arguments
                self._parse_args = parse_args

                add_arguments_name = self._add_arguments.__name__
                parse_args_name = self._parse_args.__name__
                for test_func in [self.test_failures, self.test_successes]:
                    func_name = test_func.__name__
                    names = func_name, add_arguments_name, parse_args_name
                    test_name = '_'.join(names)

                    def wrapper(self, test_func=test_func):
                        test_func(self)
                    try:
                        wrapper.__name__ = test_name
                    except TypeError:
                        pass
                    setattr(tester_cls, test_name, wrapper)

            def _get_parser(self, tester):
                args = tester.parser_signature.args
                kwargs = tester.parser_signature.kwargs
                parser = tester.parser_class(*args, **kwargs)
                self._add_arguments(parser, tester.argument_signatures)
                return parser

            def test_failures(self, tester):
                parser = self._get_parser(tester)
                for args_str in tester.failures:
                    args = args_str.split()
                    raises = tester.assertRaises
                    raises(ArgumentParserError, parser.parse_args, args)

            def test_successes(self, tester):
                parser = self._get_parser(tester)
                for args, expected_ns in tester.successes:
                    if isinstance(args, str):
                        args = args.split()
                    result_ns = self._parse_args(parser, args)
                    tester.assertEqual(expected_ns, result_ns)

        # add tests for each combination of an optionals adding method
        # and an arg parsing method
        for add_arguments in [no_groups, one_group, many_groups]:
            for parse_args in [listargs, sysargs]:
                AddTests(cls, add_arguments, parse_args)

bases = TestCase,
ParserTestCase = ParserTesterMetaclass('ParserTestCase', bases, {})

# ===============
# Optionals tests
# ===============

class TestOptionalsSingleDash(ParserTestCase):
    """Test an Optional with a single-dash option string"""

    argument_signatures = [Sig('-x')]
    failures = ['-x', 'a', '--foo', '-x --foo', '-x -y']
    successes = [
        ('', NS(x=None)),
        ('-x a', NS(x='a')),
        ('-xa', NS(x='a')),
        ('-x -1', NS(x='-1')),
        ('-x-1', NS(x='-1')),
    ]


class TestOptionalsSingleDashCombined(ParserTestCase):
    """Test an Optional with a single-dash option string"""

    argument_signatures = [
        Sig('-x', action='store_true'),
        Sig('-yyy', action='store_const', const=42),
        Sig('-z'),
    ]
    failures = ['a', '--foo', '-xa', '-x --foo', '-x -z', '-z -x',
                '-yx', '-yz a', '-yyyx', '-yyyza', '-xyza']
    successes = [
        ('', NS(x=False, yyy=None, z=None)),
        ('-x', NS(x=True, yyy=None, z=None)),
        ('-za', NS(x=False, yyy=None, z='a')),
        ('-z a', NS(x=False, yyy=None, z='a')),
        ('-xza', NS(x=True, yyy=None, z='a')),
        ('-xz a', NS(x=True, yyy=None, z='a')),
        ('-x -za', NS(x=True, yyy=None, z='a')),
        ('-x -z a', NS(x=True, yyy=None, z='a')),
        ('-y', NS(x=False, yyy=42, z=None)),
        ('-yyy', NS(x=False, yyy=42, z=None)),
        ('-x -yyy -za', NS(x=True, yyy=42, z='a')),
        ('-x -yyy -z a', NS(x=True, yyy=42, z='a')),
    ]


class TestOptionalsSingleDashLong(ParserTestCase):
    """Test an Optional with a multi-character single-dash option string"""

    argument_signatures = [Sig('-foo')]
    failures = ['-foo', 'a', '--foo', '-foo --foo', '-foo -y', '-fooa']
    successes = [
        ('', NS(foo=None)),
        ('-foo a', NS(foo='a')),
        ('-foo -1', NS(foo='-1')),
        ('-fo a', NS(foo='a')),
        ('-f a', NS(foo='a')),
    ]


class TestOptionalsSingleDashSubsetAmbiguous(ParserTestCase):
    """Test Optionals where option strings are subsets of each other"""

    argument_signatures = [Sig('-f'), Sig('-foobar'), Sig('-foorab')]
    failures = ['-f', '-foo', '-fo', '-foo b', '-foob', '-fooba', '-foora']
    successes = [
        ('', NS(f=None, foobar=None, foorab=None)),
        ('-f a', NS(f='a', foobar=None, foorab=None)),
        ('-fa', NS(f='a', foobar=None, foorab=None)),
        ('-foa', NS(f='oa', foobar=None, foorab=None)),
        ('-fooa', NS(f='ooa', foobar=None, foorab=None)),
        ('-foobar a', NS(f=None, foobar='a', foorab=None)),
        ('-foorab a', NS(f=None, foobar=None, foorab='a')),
    ]


class TestOptionalsSingleDashAmbiguous(ParserTestCase):
    """Test Optionals that partially match but are not subsets"""

    argument_signatures = [Sig('-foobar'), Sig('-foorab')]
    failures = ['-f', '-f a', '-fa', '-foa', '-foo', '-fo', '-foo b']
    successes = [
        ('', NS(foobar=None, foorab=None)),
        ('-foob a', NS(foobar='a', foorab=None)),
        ('-foor a', NS(foobar=None, foorab='a')),
        ('-fooba a', NS(foobar='a', foorab=None)),
        ('-foora a', NS(foobar=None, foorab='a')),
        ('-foobar a', NS(foobar='a', foorab=None)),
        ('-foorab a', NS(foobar=None, foorab='a')),
    ]


class TestOptionalsNumeric(ParserTestCase):
    """Test an Optional with a short opt string"""

    argument_signatures = [Sig('-1', dest='one')]
    failures = ['-1', 'a', '-1 --foo', '-1 -y', '-1 -1', '-1 -2']
    successes = [
        ('', NS(one=None)),
        ('-1 a', NS(one='a')),
        ('-1a', NS(one='a')),
        ('-1-2', NS(one='-2')),
    ]


class TestOptionalsDoubleDash(ParserTestCase):
    """Test an Optional with a double-dash option string"""

    argument_signatures = [Sig('--foo')]
    failures = ['--foo', '-f', '-f a', 'a', '--foo -x', '--foo --bar']
    successes = [
        ('', NS(foo=None)),
        ('--foo a', NS(foo='a')),
        ('--foo=a', NS(foo='a')),
        ('--foo -2.5', NS(foo='-2.5')),
        ('--foo=-2.5', NS(foo='-2.5')),
    ]


class TestOptionalsDoubleDashPartialMatch(ParserTestCase):
    """Tests partial matching with a double-dash option string"""

    argument_signatures = [
        Sig('--badger', action='store_true'),
        Sig('--bat'),
    ]
    failures = ['--bar', '--b', '--ba', '--b=2', '--ba=4', '--badge 5']
    successes = [
        ('', NS(badger=False, bat=None)),
        ('--bat X', NS(badger=False, bat='X')),
        ('--bad', NS(badger=True, bat=None)),
        ('--badg', NS(badger=True, bat=None)),
        ('--badge', NS(badger=True, bat=None)),
        ('--badger', NS(badger=True, bat=None)),
    ]


class TestOptionalsDoubleDashPrefixMatch(ParserTestCase):
    """Tests when one double-dash option string is a prefix of another"""

    argument_signatures = [
        Sig('--badger', action='store_true'),
        Sig('--ba'),
    ]
    failures = ['--bar', '--b', '--ba', '--b=2', '--badge 5']
    successes = [
        ('', NS(badger=False, ba=None)),
        ('--ba X', NS(badger=False, ba='X')),
        ('--ba=X', NS(badger=False, ba='X')),
        ('--bad', NS(badger=True, ba=None)),
        ('--badg', NS(badger=True, ba=None)),
        ('--badge', NS(badger=True, ba=None)),
        ('--badger', NS(badger=True, ba=None)),
    ]


class TestOptionalsSingleDoubleDash(ParserTestCase):
    """Test an Optional with single- and double-dash option strings"""

    argument_signatures = [
        Sig('-f', action='store_true'),
        Sig('--bar'),
        Sig('-baz', action='store_const', const=42),
    ]
    failures = ['--bar', '-fbar', '-fbaz', '-bazf', '-b B', 'B']
    successes = [
        ('', NS(f=False, bar=None, baz=None)),
        ('-f', NS(f=True, bar=None, baz=None)),
        ('--ba B', NS(f=False, bar='B', baz=None)),
        ('-f --bar B', NS(f=True, bar='B', baz=None)),
        ('-f -b', NS(f=True, bar=None, baz=42)),
        ('-ba -f', NS(f=True, bar=None, baz=42)),
    ]


class TestOptionalsAlternatePrefixChars(ParserTestCase):
    """Test an Optional with option strings with custom prefixes"""

    parser_signature = Sig(prefix_chars='+:/', add_help=False)
    argument_signatures = [
        Sig('+f', action='store_true'),
        Sig('::bar'),
        Sig('/baz', action='store_const', const=42),
    ]
    failures = ['--bar', '-fbar', '-b B', 'B', '-f', '--bar B', '-baz', '-h', '--help', '+h', '::help', '/help']
    successes = [
        ('', NS(f=False, bar=None, baz=None)),
        ('+f', NS(f=True, bar=None, baz=None)),
        ('::ba B', NS(f=False, bar='B', baz=None)),
        ('+f ::bar B', NS(f=True, bar='B', baz=None)),
        ('+f /b', NS(f=True, bar=None, baz=42)),
        ('/ba +f', NS(f=True, bar=None, baz=42)),
    ]


class TestOptionalsAlternatePrefixCharsAddedHelp(ParserTestCase):
    """When ``-`` not in prefix_chars, default operators created for help
       should use the prefix_chars in use rather than - or --
       http://bugs.python.org/issue9444"""

    parser_signature = Sig(prefix_chars='+:/', add_help=True)
    argument_signatures = [
        Sig('+f', action='store_true'),
        Sig('::bar'),
        Sig('/baz', action='store_const', const=42),
    ]
    failures = ['--bar', '-fbar', '-b B', 'B', '-f', '--bar B', '-baz']
    successes = [
        ('', NS(f=False, bar=None, baz=None)),
        ('+f', NS(f=True, bar=None, baz=None)),
        ('::ba B', NS(f=False, bar='B', baz=None)),
        ('+f ::bar B', NS(f=True, bar='B', baz=None)),
        ('+f /b', NS(f=True, bar=None, baz=42)),
        ('/ba +f', NS(f=True, bar=None, baz=42))
    ]


class TestOptionalsAlternatePrefixCharsMultipleShortArgs(ParserTestCase):
    """Verify that Optionals must be called with their defined prefixes"""

    parser_signature = Sig(prefix_chars='+-', add_help=False)
    argument_signatures = [
        Sig('-x', action='store_true'),
        Sig('+y', action='store_true'),
        Sig('+z', action='store_true'),
    ]
    failures = ['-w',
                '-xyz',
                '+x',
                '-y',
                '+xyz',
    ]
    successes = [
        ('', NS(x=False, y=False, z=False)),
        ('-x', NS(x=True, y=False, z=False)),
        ('+y -x', NS(x=True, y=True, z=False)),
        ('+yz -x', NS(x=True, y=True, z=True)),
    ]


class TestOptionalsShortLong(ParserTestCase):
    """Test a combination of single- and double-dash option strings"""

    argument_signatures = [
        Sig('-v', '--verbose', '-n', '--noisy', action='store_true'),
    ]
    failures = ['--x --verbose', '-N', 'a', '-v x']
    successes = [
        ('', NS(verbose=False)),
        ('-v', NS(verbose=True)),
        ('--verbose', NS(verbose=True)),
        ('-n', NS(verbose=True)),
        ('--noisy', NS(verbose=True)),
    ]


class TestOptionalsDest(ParserTestCase):
    """Tests various means of setting destination"""

    argument_signatures = [Sig('--foo-bar'), Sig('--baz', dest='zabbaz')]
    failures = ['a']
    successes = [
        ('--foo-bar f', NS(foo_bar='f', zabbaz=None)),
        ('--baz g', NS(foo_bar=None, zabbaz='g')),
        ('--foo-bar h --baz i', NS(foo_bar='h', zabbaz='i')),
        ('--baz j --foo-bar k', NS(foo_bar='k', zabbaz='j')),
    ]


class TestOptionalsDefault(ParserTestCase):
    """Tests specifying a default for an Optional"""

    argument_signatures = [Sig('-x'), Sig('-y', default=42)]
    failures = ['a']
    successes = [
        ('', NS(x=None, y=42)),
        ('-xx', NS(x='x', y=42)),
        ('-yy', NS(x=None, y='y')),
    ]


class TestOptionalsNargsDefault(ParserTestCase):
    """Tests not specifying the number of args for an Optional"""

    argument_signatures = [Sig('-x')]
    failures = ['a', '-x']
    successes = [
        ('', NS(x=None)),
        ('-x a', NS(x='a')),
    ]


class TestOptionalsNargs1(ParserTestCase):
    """Tests specifying 1 arg for an Optional"""

    argument_signatures = [Sig('-x', nargs=1)]
    failures = ['a', '-x']
    successes = [
        ('', NS(x=None)),
        ('-x a', NS(x=['a'])),
    ]


class TestOptionalsNargs3(ParserTestCase):
    """Tests specifying 3 args for an Optional"""

    argument_signatures = [Sig('-x', nargs=3)]
    failures = ['a', '-x', '-x a', '-x a b', 'a -x', 'a -x b']
    successes = [
        ('', NS(x=None)),
        ('-x a b c', NS(x=['a', 'b', 'c'])),
    ]


class TestOptionalsNargsOptional(ParserTestCase):
    """Tests specifying an Optional arg for an Optional"""

    argument_signatures = [
        Sig('-w', nargs='?'),
        Sig('-x', nargs='?', const=42),
        Sig('-y', nargs='?', default='spam'),
        Sig('-z', nargs='?', type=int, const='42', default='84'),
    ]
    failures = ['2']
    successes = [
        ('', NS(w=None, x=None, y='spam', z=84)),
        ('-w', NS(w=None, x=None, y='spam', z=84)),
        ('-w 2', NS(w='2', x=None, y='spam', z=84)),
        ('-x', NS(w=None, x=42, y='spam', z=84)),
        ('-x 2', NS(w=None, x='2', y='spam', z=84)),
        ('-y', NS(w=None, x=None, y=None, z=84)),
        ('-y 2', NS(w=None, x=None, y='2', z=84)),
        ('-z', NS(w=None, x=None, y='spam', z=42)),
        ('-z 2', NS(w=None, x=None, y='spam', z=2)),
    ]


class TestOptionalsNargsZeroOrMore(ParserTestCase):
    """Tests specifying args for an Optional that accepts zero or more"""

    argument_signatures = [
        Sig('-x', nargs='*'),
        Sig('-y', nargs='*', default='spam'),
    ]
    failures = ['a']
    successes = [
        ('', NS(x=None, y='spam')),
        ('-x', NS(x=[], y='spam')),
        ('-x a', NS(x=['a'], y='spam')),
        ('-x a b', NS(x=['a', 'b'], y='spam')),
        ('-y', NS(x=None, y=[])),
        ('-y a', NS(x=None, y=['a'])),
        ('-y a b', NS(x=None, y=['a', 'b'])),
    ]


class TestOptionalsNargsOneOrMore(ParserTestCase):
    """Tests specifying args for an Optional that accepts one or more"""

    argument_signatures = [
        Sig('-x', nargs='+'),
        Sig('-y', nargs='+', default='spam'),
    ]
    failures = ['a', '-x', '-y', 'a -x', 'a -y b']
    successes = [
        ('', NS(x=None, y='spam')),
        ('-x a', NS(x=['a'], y='spam')),
        ('-x a b', NS(x=['a', 'b'], y='spam')),
        ('-y a', NS(x=None, y=['a'])),
        ('-y a b', NS(x=None, y=['a', 'b'])),
    ]


class TestOptionalsChoices(ParserTestCase):
    """Tests specifying the choices for an Optional"""

    argument_signatures = [
        Sig('-f', choices='abc'),
        Sig('-g', type=int, choices=range(5))]
    failures = ['a', '-f d', '-fad', '-ga', '-g 6']
    successes = [
        ('', NS(f=None, g=None)),
        ('-f a', NS(f='a', g=None)),
        ('-f c', NS(f='c', g=None)),
        ('-g 0', NS(f=None, g=0)),
        ('-g 03', NS(f=None, g=3)),
        ('-fb -g4', NS(f='b', g=4)),
    ]


class TestOptionalsRequired(ParserTestCase):
    """Tests an optional action that is required"""

    argument_signatures = [
        Sig('-x', type=int, required=True),
    ]
    failures = ['a', '']
    successes = [
        ('-x 1', NS(x=1)),
        ('-x42', NS(x=42)),
    ]


class TestOptionalsActionStore(ParserTestCase):
    """Tests the store action for an Optional"""

    argument_signatures = [Sig('-x', action='store')]
    failures = ['a', 'a -x']
    successes = [
        ('', NS(x=None)),
        ('-xfoo', NS(x='foo')),
    ]


class TestOptionalsActionStoreConst(ParserTestCase):
    """Tests the store_const action for an Optional"""

    argument_signatures = [Sig('-y', action='store_const', const=object)]
    failures = ['a']
    successes = [
        ('', NS(y=None)),
        ('-y', NS(y=object)),
    ]


class TestOptionalsActionStoreFalse(ParserTestCase):
    """Tests the store_false action for an Optional"""

    argument_signatures = [Sig('-z', action='store_false')]
    failures = ['a', '-za', '-z a']
    successes = [
        ('', NS(z=True)),
        ('-z', NS(z=False)),
    ]


class TestOptionalsActionStoreTrue(ParserTestCase):
    """Tests the store_true action for an Optional"""

    argument_signatures = [Sig('--apple', action='store_true')]
    failures = ['a', '--apple=b', '--apple b']
    successes = [
        ('', NS(apple=False)),
        ('--apple', NS(apple=True)),
    ]


class TestOptionalsActionAppend(ParserTestCase):
    """Tests the append action for an Optional"""

    argument_signatures = [Sig('--baz', action='append')]
    failures = ['a', '--baz', 'a --baz', '--baz a b']
    successes = [
        ('', NS(baz=None)),
        ('--baz a', NS(baz=['a'])),
        ('--baz a --baz b', NS(baz=['a', 'b'])),
    ]


class TestOptionalsActionAppendWithDefault(ParserTestCase):
    """Tests the append action for an Optional"""

    argument_signatures = [Sig('--baz', action='append', default=['X'])]
    failures = ['a', '--baz', 'a --baz', '--baz a b']
    successes = [
        ('', NS(baz=['X'])),
        ('--baz a', NS(baz=['X', 'a'])),
        ('--baz a --baz b', NS(baz=['X', 'a', 'b'])),
    ]


class TestOptionalsActionAppendConst(ParserTestCase):
    """Tests the append_const action for an Optional"""

    argument_signatures = [
        Sig('-b', action='append_const', const=Exception),
        Sig('-c', action='append', dest='b'),
    ]
    failures = ['a', '-c', 'a -c', '-bx', '-b x']
    successes = [
        ('', NS(b=None)),
        ('-b', NS(b=[Exception])),
        ('-b -cx -b -cyz', NS(b=[Exception, 'x', Exception, 'yz'])),
    ]


class TestOptionalsActionAppendConstWithDefault(ParserTestCase):
    """Tests the append_const action for an Optional"""

    argument_signatures = [
        Sig('-b', action='append_const', const=Exception, default=['X']),
        Sig('-c', action='append', dest='b'),
    ]
    failures = ['a', '-c', 'a -c', '-bx', '-b x']
    successes = [
        ('', NS(b=['X'])),
        ('-b', NS(b=['X', Exception])),
        ('-b -cx -b -cyz', NS(b=['X', Exception, 'x', Exception, 'yz'])),
    ]


class TestOptionalsActionCount(ParserTestCase):
    """Tests the count action for an Optional"""

    argument_signatures = [Sig('-x', action='count')]
    failures = ['a', '-x a', '-x b', '-x a -x b']
    successes = [
        ('', NS(x=None)),
        ('-x', NS(x=1)),
    ]


# ================
# Positional tests
# ================

class TestPositionalsNargsNone(ParserTestCase):
    """Test a Positional that doesn't specify nargs"""

    argument_signatures = [Sig('foo')]
    failures = ['', '-x', 'a b']
    successes = [
        ('a', NS(foo='a')),
    ]


class TestPositionalsNargs1(ParserTestCase):
    """Test a Positional that specifies an nargs of 1"""

    argument_signatures = [Sig('foo', nargs=1)]
    failures = ['', '-x', 'a b']
    successes = [
        ('a', NS(foo=['a'])),
    ]


class TestPositionalsNargs2(ParserTestCase):
    """Test a Positional that specifies an nargs of 2"""

    argument_signatures = [Sig('foo', nargs=2)]
    failures = ['', 'a', '-x', 'a b c']
    successes = [
        ('a b', NS(foo=['a', 'b'])),
    ]


class TestPositionalsNargsZeroOrMore(ParserTestCase):
    """Test a Positional that specifies unlimited nargs"""

    argument_signatures = [Sig('foo', nargs='*')]
    failures = ['-x']
    successes = [
        ('', NS(foo=[])),
        ('a', NS(foo=['a'])),
        ('a b', NS(foo=['a', 'b'])),
    ]


class TestPositionalsNargsZeroOrMoreDefault(ParserTestCase):
    """Test a Positional that specifies unlimited nargs and a default"""

    argument_signatures = [Sig('foo', nargs='*', default='bar')]
    failures = ['-x']
    successes = [
        ('', NS(foo='bar')),
        ('a', NS(foo=['a'])),
        ('a b', NS(foo=['a', 'b'])),
    ]


class TestPositionalsNargsOneOrMore(ParserTestCase):
    """Test a Positional that specifies one or more nargs"""

    argument_signatures = [Sig('foo', nargs='+')]
    failures = ['', '-x']
    successes = [
        ('a', NS(foo=['a'])),
        ('a b', NS(foo=['a', 'b'])),
    ]


class TestPositionalsNargsOptional(ParserTestCase):
    """Tests an Optional Positional"""

    argument_signatures = [Sig('foo', nargs='?')]
    failures = ['-x', 'a b']
    successes = [
        ('', NS(foo=None)),
        ('a', NS(foo='a')),
    ]


class TestPositionalsNargsOptionalDefault(ParserTestCase):
    """Tests an Optional Positional with a default value"""

    argument_signatures = [Sig('foo', nargs='?', default=42)]
    failures = ['-x', 'a b']
    successes = [
        ('', NS(foo=42)),
        ('a', NS(foo='a')),
    ]


class TestPositionalsNargsOptionalConvertedDefault(ParserTestCase):
    """Tests an Optional Positional with a default value
    that needs to be converted to the appropriate type.
    """

    argument_signatures = [
        Sig('foo', nargs='?', type=int, default='42'),
    ]
    failures = ['-x', 'a b', '1 2']
    successes = [
        ('', NS(foo=42)),
        ('1', NS(foo=1)),
    ]


class TestPositionalsNargsNoneNone(ParserTestCase):
    """Test two Positionals that don't specify nargs"""

    argument_signatures = [Sig('foo'), Sig('bar')]
    failures = ['', '-x', 'a', 'a b c']
    successes = [
        ('a b', NS(foo='a', bar='b')),
    ]


class TestPositionalsNargsNone1(ParserTestCase):
    """Test a Positional with no nargs followed by one with 1"""

    argument_signatures = [Sig('foo'), Sig('bar', nargs=1)]
    failures = ['', '--foo', 'a', 'a b c']
    successes = [
        ('a b', NS(foo='a', bar=['b'])),
    ]


class TestPositionalsNargs2None(ParserTestCase):
    """Test a Positional with 2 nargs followed by one with none"""

    argument_signatures = [Sig('foo', nargs=2), Sig('bar')]
    failures = ['', '--foo', 'a', 'a b', 'a b c d']
    successes = [
        ('a b c', NS(foo=['a', 'b'], bar='c')),
    ]


class TestPositionalsNargsNoneZeroOrMore(ParserTestCase):
    """Test a Positional with no nargs followed by one with unlimited"""

    argument_signatures = [Sig('foo'), Sig('bar', nargs='*')]
    failures = ['', '--foo']
    successes = [
        ('a', NS(foo='a', bar=[])),
        ('a b', NS(foo='a', bar=['b'])),
        ('a b c', NS(foo='a', bar=['b', 'c'])),
    ]


class TestPositionalsNargsNoneOneOrMore(ParserTestCase):
    """Test a Positional with no nargs followed by one with one or more"""

    argument_signatures = [Sig('foo'), Sig('bar', nargs='+')]
    failures = ['', '--foo', 'a']
    successes = [
        ('a b', NS(foo='a', bar=['b'])),
        ('a b c', NS(foo='a', bar=['b', 'c'])),
    ]


class TestPositionalsNargsNoneOptional(ParserTestCase):
    """Test a Positional with no nargs followed by one with an Optional"""

    argument_signatures = [Sig('foo'), Sig('bar', nargs='?')]
    failures = ['', '--foo', 'a b c']
    successes = [
        ('a', NS(foo='a', bar=None)),
        ('a b', NS(foo='a', bar='b')),
    ]


class TestPositionalsNargsZeroOrMoreNone(ParserTestCase):
    """Test a Positional with unlimited nargs followed by one with none"""

    argument_signatures = [Sig('foo', nargs='*'), Sig('bar')]
    failures = ['', '--foo']
    successes = [
        ('a', NS(foo=[], bar='a')),
        ('a b', NS(foo=['a'], bar='b')),
        ('a b c', NS(foo=['a', 'b'], bar='c')),
    ]


class TestPositionalsNargsOneOrMoreNone(ParserTestCase):
    """Test a Positional with one or more nargs followed by one with none"""

    argument_signatures = [Sig('foo', nargs='+'), Sig('bar')]
    failures = ['', '--foo', 'a']
    successes = [
        ('a b', NS(foo=['a'], bar='b')),
        ('a b c', NS(foo=['a', 'b'], bar='c')),
    ]


class TestPositionalsNargsOptionalNone(ParserTestCase):
    """Test a Positional with an Optional nargs followed by one with none"""

    argument_signatures = [Sig('foo', nargs='?', default=42), Sig('bar')]
    failures = ['', '--foo', 'a b c']
    successes = [
        ('a', NS(foo=42, bar='a')),
        ('a b', NS(foo='a', bar='b')),
    ]


class TestPositionalsNargs2ZeroOrMore(ParserTestCase):
    """Test a Positional with 2 nargs followed by one with unlimited"""

    argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='*')]
    failures = ['', '--foo', 'a']
    successes = [
        ('a b', NS(foo=['a', 'b'], bar=[])),
        ('a b c', NS(foo=['a', 'b'], bar=['c'])),
    ]


class TestPositionalsNargs2OneOrMore(ParserTestCase):
    """Test a Positional with 2 nargs followed by one with one or more"""

    argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='+')]
    failures = ['', '--foo', 'a', 'a b']
    successes = [
        ('a b c', NS(foo=['a', 'b'], bar=['c'])),
    ]


class TestPositionalsNargs2Optional(ParserTestCase):
    """Test a Positional with 2 nargs followed by one optional"""

    argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='?')]
    failures = ['', '--foo', 'a', 'a b c d']
    successes = [
        ('a b', NS(foo=['a', 'b'], bar=None)),
        ('a b c', NS(foo=['a', 'b'], bar='c')),
    ]


class TestPositionalsNargsZeroOrMore1(ParserTestCase):
    """Test a Positional with unlimited nargs followed by one with 1"""

    argument_signatures = [Sig('foo', nargs='*'), Sig('bar', nargs=1)]
    failures = ['', '--foo', ]
    successes = [
        ('a', NS(foo=[], bar=['a'])),
        ('a b', NS(foo=['a'], bar=['b'])),
        ('a b c', NS(foo=['a', 'b'], bar=['c'])),
    ]


class TestPositionalsNargsOneOrMore1(ParserTestCase):
    """Test a Positional with one or more nargs followed by one with 1"""

    argument_signatures = [Sig('foo', nargs='+'), Sig('bar', nargs=1)]
    failures = ['', '--foo', 'a']
    successes = [
        ('a b', NS(foo=['a'], bar=['b'])),
        ('a b c', NS(foo=['a', 'b'], bar=['c'])),
    ]


class TestPositionalsNargsOptional1(ParserTestCase):
    """Test a Positional with an Optional nargs followed by one with 1"""

    argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs=1)]
    failures = ['', '--foo', 'a b c']
    successes = [
        ('a', NS(foo=None, bar=['a'])),
        ('a b', NS(foo='a', bar=['b'])),
    ]


class TestPositionalsNargsNoneZeroOrMore1(ParserTestCase):
    """Test three Positionals: no nargs, unlimited nargs and 1 nargs"""

    argument_signatures = [
        Sig('foo'),
        Sig('bar', nargs='*'),
        Sig('baz', nargs=1),
    ]
    failures = ['', '--foo', 'a']
    successes = [
        ('a b', NS(foo='a', bar=[], baz=['b'])),
        ('a b c', NS(foo='a', bar=['b'], baz=['c'])),
    ]


class TestPositionalsNargsNoneOneOrMore1(ParserTestCase):
    """Test three Positionals: no nargs, one or more nargs and 1 nargs"""

    argument_signatures = [
        Sig('foo'),
        Sig('bar', nargs='+'),
        Sig('baz', nargs=1),
    ]
    failures = ['', '--foo', 'a', 'b']
    successes = [
        ('a b c', NS(foo='a', bar=['b'], baz=['c'])),
        ('a b c d', NS(foo='a', bar=['b', 'c'], baz=['d'])),
    ]


class TestPositionalsNargsNoneOptional1(ParserTestCase):
    """Test three Positionals: no nargs, optional narg and 1 nargs"""

    argument_signatures = [
        Sig('foo'),
        Sig('bar', nargs='?', default=0.625),
        Sig('baz', nargs=1),
    ]
    failures = ['', '--foo', 'a']
    successes = [
        ('a b', NS(foo='a', bar=0.625, baz=['b'])),
        ('a b c', NS(foo='a', bar='b', baz=['c'])),
    ]


class TestPositionalsNargsOptionalOptional(ParserTestCase):
    """Test two optional nargs"""

    argument_signatures = [
        Sig('foo', nargs='?'),
        Sig('bar', nargs='?', default=42),
    ]
    failures = ['--foo', 'a b c']
    successes = [
        ('', NS(foo=None, bar=42)),
        ('a', NS(foo='a', bar=42)),
        ('a b', NS(foo='a', bar='b')),
    ]


class TestPositionalsNargsOptionalZeroOrMore(ParserTestCase):
    """Test an Optional narg followed by unlimited nargs"""

    argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs='*')]
    failures = ['--foo']
    successes = [
        ('', NS(foo=None, bar=[])),
        ('a', NS(foo='a', bar=[])),
        ('a b', NS(foo='a', bar=['b'])),
        ('a b c', NS(foo='a', bar=['b', 'c'])),
    ]


class TestPositionalsNargsOptionalOneOrMore(ParserTestCase):
    """Test an Optional narg followed by one or more nargs"""

    argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs='+')]
    failures = ['', '--foo']
    successes = [
        ('a', NS(foo=None, bar=['a'])),
        ('a b', NS(foo='a', bar=['b'])),
        ('a b c', NS(foo='a', bar=['b', 'c'])),
    ]


class TestPositionalsChoicesString(ParserTestCase):
    """Test a set of single-character choices"""

    argument_signatures = [Sig('spam', choices=set('abcdefg'))]
    failures = ['', '--foo', 'h', '42', 'ef']
    successes = [
        ('a', NS(spam='a')),
        ('g', NS(spam='g')),
    ]


class TestPositionalsChoicesInt(ParserTestCase):
    """Test a set of integer choices"""

    argument_signatures = [Sig('spam', type=int, choices=range(20))]
    failures = ['', '--foo', 'h', '42', 'ef']
    successes = [
        ('4', NS(spam=4)),
        ('15', NS(spam=15)),
    ]


class TestPositionalsActionAppend(ParserTestCase):
    """Test the 'append' action"""

    argument_signatures = [
        Sig('spam', action='append'),
        Sig('spam', action='append', nargs=2),
    ]
    failures = ['', '--foo', 'a', 'a b', 'a b c d']
    successes = [
        ('a b c', NS(spam=['a', ['b', 'c']])),
    ]

# ========================================
# Combined optionals and positionals tests
# ========================================

class TestOptionalsNumericAndPositionals(ParserTestCase):
    """Tests negative number args when numeric options are present"""

    argument_signatures = [
        Sig('x', nargs='?'),
        Sig('-4', dest='y', action='store_true'),
    ]
    failures = ['-2', '-315']
    successes = [
        ('', NS(x=None, y=False)),
        ('a', NS(x='a', y=False)),
        ('-4', NS(x=None, y=True)),
        ('-4 a', NS(x='a', y=True)),
    ]


class TestOptionalsAlmostNumericAndPositionals(ParserTestCase):
    """Tests negative number args when almost numeric options are present"""

    argument_signatures = [
        Sig('x', nargs='?'),
        Sig('-k4', dest='y', action='store_true'),
    ]
    failures = ['-k3']
    successes = [
        ('', NS(x=None, y=False)),
        ('-2', NS(x='-2', y=False)),
        ('a', NS(x='a', y=False)),
        ('-k4', NS(x=None, y=True)),
        ('-k4 a', NS(x='a', y=True)),
    ]


class TestEmptyAndSpaceContainingArguments(ParserTestCase):

    argument_signatures = [
        Sig('x', nargs='?'),
        Sig('-y', '--yyy', dest='y'),
    ]
    failures = ['-y']
    successes = [
        ([''], NS(x='', y=None)),
        (['a badger'], NS(x='a badger', y=None)),
        (['-a badger'], NS(x='-a badger', y=None)),
        (['-y', ''], NS(x=None, y='')),
        (['-y', 'a badger'], NS(x=None, y='a badger')),
        (['-y', '-a badger'], NS(x=None, y='-a badger')),
        (['--yyy=a badger'], NS(x=None, y='a badger')),
        (['--yyy=-a badger'], NS(x=None, y='-a badger')),
    ]


class TestPrefixCharacterOnlyArguments(ParserTestCase):

    parser_signature = Sig(prefix_chars='-+')
    argument_signatures = [
        Sig('-', dest='x', nargs='?', const='badger'),
        Sig('+', dest='y', type=int, default=42),
        Sig('-+-', dest='z', action='store_true'),
    ]
    failures = ['-y', '+ -']
    successes = [
        ('', NS(x=None, y=42, z=False)),
        ('-', NS(x='badger', y=42, z=False)),
        ('- X', NS(x='X', y=42, z=False)),
        ('+ -3', NS(x=None, y=-3, z=False)),
        ('-+-', NS(x=None, y=42, z=True)),
        ('- ===', NS(x='===', y=42, z=False)),
    ]


class TestNargsZeroOrMore(ParserTestCase):
    """Tests specifying args for an Optional that accepts zero or more"""

    argument_signatures = [Sig('-x', nargs='*'), Sig('y', nargs='*')]
    failures = []
    successes = [
        ('', NS(x=None, y=[])),
        ('-x', NS(x=[], y=[])),
        ('-x a', NS(x=['a'], y=[])),
        ('-x a -- b', NS(x=['a'], y=['b'])),
        ('a', NS(x=None, y=['a'])),
        ('a -x', NS(x=[], y=['a'])),
        ('a -x b', NS(x=['b'], y=['a'])),
    ]


class TestNargsRemainder(ParserTestCase):
    """Tests specifying a positional with nargs=REMAINDER"""

    argument_signatures = [Sig('x'), Sig('y', nargs='...'), Sig('-z')]
    failures = ['', '-z', '-z Z']
    successes = [
        ('X', NS(x='X', y=[], z=None)),
        ('-z Z X', NS(x='X', y=[], z='Z')),
        ('X A B -z Z', NS(x='X', y=['A', 'B', '-z', 'Z'], z=None)),
        ('X Y --foo', NS(x='X', y=['Y', '--foo'], z=None)),
    ]


class TestOptionLike(ParserTestCase):
    """Tests options that may or may not be arguments"""

    argument_signatures = [
        Sig('-x', type=float),
        Sig('-3', type=float, dest='y'),
        Sig('z', nargs='*'),
    ]
    failures = ['-x', '-y2.5', '-xa', '-x -a',
                '-x -3', '-x -3.5', '-3 -3.5',
                '-x -2.5', '-x -2.5 a', '-3 -.5',
                'a x -1', '-x -1 a', '-3 -1 a']
    successes = [
        ('', NS(x=None, y=None, z=[])),
        ('-x 2.5', NS(x=2.5, y=None, z=[])),
        ('-x 2.5 a', NS(x=2.5, y=None, z=['a'])),
        ('-3.5', NS(x=None, y=0.5, z=[])),
        ('-3-.5', NS(x=None, y=-0.5, z=[])),
        ('-3 .5', NS(x=None, y=0.5, z=[])),
        ('a -3.5', NS(x=None, y=0.5, z=['a'])),
        ('a', NS(x=None, y=None, z=['a'])),
        ('a -x 1', NS(x=1.0, y=None, z=['a'])),
        ('-x 1 a', NS(x=1.0, y=None, z=['a'])),
        ('-3 1 a', NS(x=None, y=1.0, z=['a'])),
    ]


class TestDefaultSuppress(ParserTestCase):
    """Test actions with suppressed defaults"""

    argument_signatures = [
        Sig('foo', nargs='?', default=argparse.SUPPRESS),
        Sig('bar', nargs='*', default=argparse.SUPPRESS),
        Sig('--baz', action='store_true', default=argparse.SUPPRESS),
    ]
    failures = ['-x']
    successes = [
        ('', NS()),
        ('a', NS(foo='a')),
        ('a b', NS(foo='a', bar=['b'])),
        ('--baz', NS(baz=True)),
        ('a --baz', NS(foo='a', baz=True)),
        ('--baz a b', NS(foo='a', bar=['b'], baz=True)),
    ]


class TestParserDefaultSuppress(ParserTestCase):
    """Test actions with a parser-level default of SUPPRESS"""

    parser_signature = Sig(argument_default=argparse.SUPPRESS)
    argument_signatures = [
        Sig('foo', nargs='?'),
        Sig('bar', nargs='*'),
        Sig('--baz', action='store_true'),
    ]
    failures = ['-x']
    successes = [
        ('', NS()),
        ('a', NS(foo='a')),
        ('a b', NS(foo='a', bar=['b'])),
        ('--baz', NS(baz=True)),
        ('a --baz', NS(foo='a', baz=True)),
        ('--baz a b', NS(foo='a', bar=['b'], baz=True)),
    ]


class TestParserDefault42(ParserTestCase):
    """Test actions with a parser-level default of 42"""

    parser_signature = Sig(argument_default=42, version='1.0')
    argument_signatures = [
        Sig('foo', nargs='?'),
        Sig('bar', nargs='*'),
        Sig('--baz', action='store_true'),
    ]
    failures = ['-x']
    successes = [
        ('', NS(foo=42, bar=42, baz=42)),
        ('a', NS(foo='a', bar=42, baz=42)),
        ('a b', NS(foo='a', bar=['b'], baz=42)),
        ('--baz', NS(foo=42, bar=42, baz=True)),
        ('a --baz', NS(foo='a', bar=42, baz=True)),
        ('--baz a b', NS(foo='a', bar=['b'], baz=True)),
    ]


class TestArgumentsFromFile(TempDirMixin, ParserTestCase):
    """Test reading arguments from a file"""

    def setUp(self):
        super(TestArgumentsFromFile, self).setUp()
        file_texts = [
            ('hello', 'hello world!\n'),
            ('recursive', '-a\n'
                          'A\n'
                          '@hello'),
            ('invalid', '@no-such-path\n'),
        ]
        for path, text in file_texts:
            file = open(path, 'w')
            file.write(text)
            file.close()

    parser_signature = Sig(fromfile_prefix_chars='@')
    argument_signatures = [
        Sig('-a'),
        Sig('x'),
        Sig('y', nargs='+'),
    ]
    failures = ['', '-b', 'X', '@invalid', '@missing']
    successes = [
        ('X Y', NS(a=None, x='X', y=['Y'])),
        ('X -a A Y Z', NS(a='A', x='X', y=['Y', 'Z'])),
        ('@hello X', NS(a=None, x='hello world!', y=['X'])),
        ('X @hello', NS(a=None, x='X', y=['hello world!'])),
        ('-a B @recursive Y Z', NS(a='A', x='hello world!', y=['Y', 'Z'])),
        ('X @recursive Z -a B', NS(a='B', x='X', y=['hello world!', 'Z'])),
        (["-a", "", "X", "Y"], NS(a='', x='X', y=['Y'])),
    ]


class TestArgumentsFromFileConverter(TempDirMixin, ParserTestCase):
    """Test reading arguments from a file"""

    def setUp(self):
        super(TestArgumentsFromFileConverter, self).setUp()
        file_texts = [
            ('hello', 'hello world!\n'),
        ]
        for path, text in file_texts:
            file = open(path, 'w')
            file.write(text)
            file.close()

    class FromFileConverterArgumentParser(ErrorRaisingArgumentParser):

        def convert_arg_line_to_args(self, arg_line):
            for arg in arg_line.split():
                if not arg.strip():
                    continue
                yield arg
    parser_class = FromFileConverterArgumentParser
    parser_signature = Sig(fromfile_prefix_chars='@')
    argument_signatures = [
        Sig('y', nargs='+'),
    ]
    failures = []
    successes = [
        ('@hello X', NS(y=['hello', 'world!', 'X'])),
    ]


# =====================
# Type conversion tests
# =====================

class TestFileTypeRepr(TestCase):

    def test_r(self):
        type = argparse.FileType('r')
        self.assertEqual("FileType('r')", repr(type))

    def test_wb_1(self):
        type = argparse.FileType('wb', 1)
        self.assertEqual("FileType('wb', 1)", repr(type))


class RFile(object):
    seen = {}

    def __init__(self, name):
        self.name = name

    __hash__ = None

    def __eq__(self, other):
        if other in self.seen:
            text = self.seen[other]
        else:
            text = self.seen[other] = other.read()
            other.close()
        if not isinstance(text, str):
            text = text.decode('ascii')
        return self.name == other.name == text


class TestFileTypeR(TempDirMixin, ParserTestCase):
    """Test the FileType option/argument type for reading files"""

    def setUp(self):
        super(TestFileTypeR, self).setUp()
        for file_name in ['foo', 'bar']:
            file = open(os.path.join(self.temp_dir, file_name), 'w')
            file.write(file_name)
            file.close()
        self.create_readonly_file('readonly')

    argument_signatures = [
        Sig('-x', type=argparse.FileType()),
        Sig('spam', type=argparse.FileType('r')),
    ]
    failures = ['-x', '-x bar', 'non-existent-file.txt']
    successes = [
        ('foo', NS(x=None, spam=RFile('foo'))),
        ('-x foo bar', NS(x=RFile('foo'), spam=RFile('bar'))),
        ('bar -x foo', NS(x=RFile('foo'), spam=RFile('bar'))),
        ('-x - -', NS(x=sys.stdin, spam=sys.stdin)),
        ('readonly', NS(x=None, spam=RFile('readonly'))),
    ]

class TestFileTypeDefaults(TempDirMixin, ParserTestCase):
    """Test that a file is not created unless the default is needed"""
    def setUp(self):
        super(TestFileTypeDefaults, self).setUp()
        file = open(os.path.join(self.temp_dir, 'good'), 'w')
        file.write('good')
        file.close()

    argument_signatures = [
        Sig('-c', type=argparse.FileType('r'), default='no-file.txt'),
    ]
    # should provoke no such file error
    failures = ['']
    # should not provoke error because default file is created
    successes = [('-c good', NS(c=RFile('good')))]


class TestFileTypeRB(TempDirMixin, ParserTestCase):
    """Test the FileType option/argument type for reading files"""

    def setUp(self):
        super(TestFileTypeRB, self).setUp()
        for file_name in ['foo', 'bar']:
            file = open(os.path.join(self.temp_dir, file_name), 'w')
            file.write(file_name)
            file.close()

    argument_signatures = [
        Sig('-x', type=argparse.FileType('rb')),
        Sig('spam', type=argparse.FileType('rb')),
    ]
    failures = ['-x', '-x bar']
    successes = [
        ('foo', NS(x=None, spam=RFile('foo'))),
        ('-x foo bar', NS(x=RFile('foo'), spam=RFile('bar'))),
        ('bar -x foo', NS(x=RFile('foo'), spam=RFile('bar'))),
        ('-x - -', NS(x=sys.stdin, spam=sys.stdin)),
    ]


class WFile(object):
    seen = set()

    def __init__(self, name):
        self.name = name

    __hash__ = None

    def __eq__(self, other):
        if other not in self.seen:
            text = 'Check that file is writable.'
            if 'b' in other.mode:
                text = text.encode('ascii')
            other.write(text)
            other.close()
            self.seen.add(other)
        return self.name == other.name


@unittest.skipIf(hasattr(os, 'geteuid') and os.geteuid() == 0,
                 "non-root user required")
class TestFileTypeW(TempDirMixin, ParserTestCase):
    """Test the FileType option/argument type for writing files"""

    def setUp(self):
        super(TestFileTypeW, self).setUp()
        self.create_readonly_file('readonly')

    argument_signatures = [
        Sig('-x', type=argparse.FileType('w')),
        Sig('spam', type=argparse.FileType('w')),
    ]
    failures = ['-x', '-x bar']
    failures = ['-x', '-x bar', 'readonly']
    successes = [
        ('foo', NS(x=None, spam=WFile('foo'))),
        ('-x foo bar', NS(x=WFile('foo'), spam=WFile('bar'))),
        ('bar -x foo', NS(x=WFile('foo'), spam=WFile('bar'))),
        ('-x - -', NS(x=sys.stdout, spam=sys.stdout)),
    ]


class TestFileTypeWB(TempDirMixin, ParserTestCase):

    argument_signatures = [
        Sig('-x', type=argparse.FileType('wb')),
        Sig('spam', type=argparse.FileType('wb')),
    ]
    failures = ['-x', '-x bar']
    successes = [
        ('foo', NS(x=None, spam=WFile('foo'))),
        ('-x foo bar', NS(x=WFile('foo'), spam=WFile('bar'))),
        ('bar -x foo', NS(x=WFile('foo'), spam=WFile('bar'))),
        ('-x - -', NS(x=sys.stdout, spam=sys.stdout)),
    ]


class TestTypeCallable(ParserTestCase):
    """Test some callables as option/argument types"""

    argument_signatures = [
        Sig('--eggs', type=complex),
        Sig('spam', type=float),
    ]
    failures = ['a', '42j', '--eggs a', '--eggs 2i']
    successes = [
        ('--eggs=42 42', NS(eggs=42, spam=42.0)),
        ('--eggs 2j -- -1.5', NS(eggs=2j, spam=-1.5)),
        ('1024.675', NS(eggs=None, spam=1024.675)),
    ]


class TestTypeUserDefined(ParserTestCase):
    """Test a user-defined option/argument type"""

    class MyType(TestCase):

        def __init__(self, value):
            self.value = value

        __hash__ = None

        def __eq__(self, other):
            return (type(self), self.value) == (type(other), other.value)

    argument_signatures = [
        Sig('-x', type=MyType),
        Sig('spam', type=MyType),
    ]
    failures = []
    successes = [
        ('a -x b', NS(x=MyType('b'), spam=MyType('a'))),
        ('-xf g', NS(x=MyType('f'), spam=MyType('g'))),
    ]


class TestTypeClassicClass(ParserTestCase):
    """Test a classic class type"""

    class C:

        def __init__(self, value):
            self.value = value

        __hash__ = None

        def __eq__(self, other):
            return (type(self), self.value) == (type(other), other.value)

    argument_signatures = [
        Sig('-x', type=C),
        Sig('spam', type=C),
    ]
    failures = []
    successes = [
        ('a -x b', NS(x=C('b'), spam=C('a'))),
        ('-xf g', NS(x=C('f'), spam=C('g'))),
    ]


class TestTypeRegistration(TestCase):
    """Test a user-defined type by registering it"""

    def test(self):

        def get_my_type(string):
            return 'my_type{%s}' % string

        parser = argparse.ArgumentParser()
        parser.register('type', 'my_type', get_my_type)
        parser.add_argument('-x', type='my_type')
        parser.add_argument('y', type='my_type')

        self.assertEqual(parser.parse_args('1'.split()),
                         NS(x=None, y='my_type{1}'))
        self.assertEqual(parser.parse_args('-x 1 42'.split()),
                         NS(x='my_type{1}', y='my_type{42}'))


# ============
# Action tests
# ============

class TestActionUserDefined(ParserTestCase):
    """Test a user-defined option/argument action"""

    class OptionalAction(argparse.Action):

        def __call__(self, parser, namespace, value, option_string=None):
            try:
                # check destination and option string
                assert self.dest == 'spam', 'dest: %s' % self.dest
                assert option_string == '-s', 'flag: %s' % option_string
                # when option is before argument, badger=2, and when
                # option is after argument, badger=<whatever was set>
                expected_ns = NS(spam=0.25)
                if value in [0.125, 0.625]:
                    expected_ns.badger = 2
                elif value in [2.0]:
                    expected_ns.badger = 84
                else:
                    raise AssertionError('value: %s' % value)
                assert expected_ns == namespace, ('expected %s, got %s' %
                                                  (expected_ns, namespace))
            except AssertionError:
                e = sys.exc_info()[1]
                raise ArgumentParserError('opt_action failed: %s' % e)
            setattr(namespace, 'spam', value)

    class PositionalAction(argparse.Action):

        def __call__(self, parser, namespace, value, option_string=None):
            try:
                assert option_string is None, ('option_string: %s' %
                                               option_string)
                # check destination
                assert self.dest == 'badger', 'dest: %s' % self.dest
                # when argument is before option, spam=0.25, and when
                # option is after argument, spam=<whatever was set>
                expected_ns = NS(badger=2)
                if value in [42, 84]:
                    expected_ns.spam = 0.25
                elif value in [1]:
                    expected_ns.spam = 0.625
                elif value in [2]:
                    expected_ns.spam = 0.125
                else:
                    raise AssertionError('value: %s' % value)
                assert expected_ns == namespace, ('expected %s, got %s' %
                                                  (expected_ns, namespace))
            except AssertionError:
                e = sys.exc_info()[1]
                raise ArgumentParserError('arg_action failed: %s' % e)
            setattr(namespace, 'badger', value)

    argument_signatures = [
        Sig('-s', dest='spam', action=OptionalAction,
            type=float, default=0.25),
        Sig('badger', action=PositionalAction,
            type=int, nargs='?', default=2),
    ]
    failures = []
    successes = [
        ('-s0.125', NS(spam=0.125, badger=2)),
        ('42', NS(spam=0.25, badger=42)),
        ('-s 0.625 1', NS(spam=0.625, badger=1)),
        ('84 -s2', NS(spam=2.0, badger=84)),
    ]


class TestActionRegistration(TestCase):
    """Test a user-defined action supplied by registering it"""

    class MyAction(argparse.Action):

        def __call__(self, parser, namespace, values, option_string=None):
            setattr(namespace, self.dest, 'foo[%s]' % values)

    def test(self):

        parser = argparse.ArgumentParser()
        parser.register('action', 'my_action', self.MyAction)
        parser.add_argument('badger', action='my_action')

        self.assertEqual(parser.parse_args(['1']), NS(badger='foo[1]'))
        self.assertEqual(parser.parse_args(['42']), NS(badger='foo[42]'))


# ================
# Subparsers tests
# ================

class TestAddSubparsers(TestCase):
    """Test the add_subparsers method"""

    def assertArgumentParserError(self, *args, **kwargs):
        self.assertRaises(ArgumentParserError, *args, **kwargs)

    def _get_parser(self, subparser_help=False, prefix_chars=None):
        # create a parser with a subparsers argument
        if prefix_chars:
            parser = ErrorRaisingArgumentParser(
                prog='PROG', description='main description', prefix_chars=prefix_chars)
            parser.add_argument(
                prefix_chars[0] * 2 + 'foo', action='store_true', help='foo help')
        else:
            parser = ErrorRaisingArgumentParser(
                prog='PROG', description='main description')
            parser.add_argument(
                '--foo', action='store_true', help='foo help')
        parser.add_argument(
            'bar', type=float, help='bar help')

        # check that only one subparsers argument can be added
        subparsers = parser.add_subparsers(help='command help')
        self.assertArgumentParserError(parser.add_subparsers)

        # add first sub-parser
        parser1_kwargs = dict(description='1 description')
        if subparser_help:
            parser1_kwargs['help'] = '1 help'
        parser1 = subparsers.add_parser('1', **parser1_kwargs)
        parser1.add_argument('-w', type=int, help='w help')
        parser1.add_argument('x', choices='abc', help='x help')

        # add second sub-parser
        parser2_kwargs = dict(description='2 description')
        if subparser_help:
            parser2_kwargs['help'] = '2 help'
        parser2 = subparsers.add_parser('2', **parser2_kwargs)
        parser2.add_argument('-y', choices='123', help='y help')
        parser2.add_argument('z', type=complex, nargs='*', help='z help')

        # add third sub-parser
        parser3_kwargs = dict(description='3 description')
        if subparser_help:
            parser3_kwargs['help'] = '3 help'
        parser3 = subparsers.add_parser('3', **parser3_kwargs)
        parser3.add_argument('t', type=int, help='t help')
        parser3.add_argument('u', nargs='...', help='u help')

        # return the main parser
        return parser

    def setUp(self):
        super(TestAddSubparsers, self).setUp()
        self.parser = self._get_parser()
        self.command_help_parser = self._get_parser(subparser_help=True)

    def test_parse_args_failures(self):
        # check some failure cases:
        for args_str in ['', 'a', 'a a', '0.5 a', '0.5 1',
                         '0.5 1 -y', '0.5 2 -w']:
            args = args_str.split()
            self.assertArgumentParserError(self.parser.parse_args, args)

    def test_parse_args(self):
        # check some non-failure cases:
        self.assertEqual(
            self.parser.parse_args('0.5 1 b -w 7'.split()),
            NS(foo=False, bar=0.5, w=7, x='b'),
        )
        self.assertEqual(
            self.parser.parse_args('0.25 --foo 2 -y 2 3j -- -1j'.split()),
            NS(foo=True, bar=0.25, y='2', z=[3j, -1j]),
        )
        self.assertEqual(
            self.parser.parse_args('--foo 0.125 1 c'.split()),
            NS(foo=True, bar=0.125, w=None, x='c'),
        )
        self.assertEqual(
            self.parser.parse_args('-1.5 3 11 -- a --foo 7 -- b'.split()),
            NS(foo=False, bar=-1.5, t=11, u=['a', '--foo', '7', '--', 'b']),
        )

    def test_parse_known_args(self):
        self.assertEqual(
            self.parser.parse_known_args('0.5 1 b -w 7'.split()),
            (NS(foo=False, bar=0.5, w=7, x='b'), []),
        )
        self.assertEqual(
            self.parser.parse_known_args('0.5 -p 1 b -w 7'.split()),
            (NS(foo=False, bar=0.5, w=7, x='b'), ['-p']),
        )
        self.assertEqual(
            self.parser.parse_known_args('0.5 1 b -w 7 -p'.split()),
            (NS(foo=False, bar=0.5, w=7, x='b'), ['-p']),
        )
        self.assertEqual(
            self.parser.parse_known_args('0.5 1 b -q -rs -w 7'.split()),
            (NS(foo=False, bar=0.5, w=7, x='b'), ['-q', '-rs']),
        )
        self.assertEqual(
            self.parser.parse_known_args('0.5 -W 1 b -X Y -w 7 Z'.split()),
            (NS(foo=False, bar=0.5, w=7, x='b'), ['-W', '-X', 'Y', 'Z']),
        )

    def test_dest(self):
        parser = ErrorRaisingArgumentParser()
        parser.add_argument('--foo', action='store_true')
        subparsers = parser.add_subparsers(dest='bar')
        parser1 = subparsers.add_parser('1')
        parser1.add_argument('baz')
        self.assertEqual(NS(foo=False, bar='1', baz='2'),
                         parser.parse_args('1 2'.split()))

    def test_help(self):
        self.assertEqual(self.parser.format_usage(),
                         'usage: PROG [-h] [--foo] bar {1,2,3} ...\n')
        self.assertEqual(self.parser.format_help(), textwrap.dedent('''\
            usage: PROG [-h] [--foo] bar {1,2,3} ...

            main description

            positional arguments:
              bar         bar help
              {1,2,3}     command help

            optional arguments:
              -h, --help  show this help message and exit
              --foo       foo help
            '''))

    def test_help_extra_prefix_chars(self):
        # Make sure - is still used for help if it is a non-first prefix char
        parser = self._get_parser(prefix_chars='+:-')
        self.assertEqual(parser.format_usage(),
                         'usage: PROG [-h] [++foo] bar {1,2,3} ...\n')
        self.assertEqual(parser.format_help(), textwrap.dedent('''\
            usage: PROG [-h] [++foo] bar {1,2,3} ...

            main description

            positional arguments:
              bar         bar help
              {1,2,3}     command help

            optional arguments:
              -h, --help  show this help message and exit
              ++foo       foo help
            '''))


    def test_help_alternate_prefix_chars(self):
        parser = self._get_parser(prefix_chars='+:/')
        self.assertEqual(parser.format_usage(),
                         'usage: PROG [+h] [++foo] bar {1,2,3} ...\n')
        self.assertEqual(parser.format_help(), textwrap.dedent('''\
            usage: PROG [+h] [++foo] bar {1,2,3} ...

            main description

            positional arguments:
              bar         bar help
              {1,2,3}     command help

            optional arguments:
              +h, ++help  show this help message and exit
              ++foo       foo help
            '''))

    def test_parser_command_help(self):
        self.assertEqual(self.command_help_parser.format_usage(),
                         'usage: PROG [-h] [--foo] bar {1,2,3} ...\n')
        self.assertEqual(self.command_help_parser.format_help(),
                         textwrap.dedent('''\
            usage: PROG [-h] [--foo] bar {1,2,3} ...

            main description

            positional arguments:
              bar         bar help
              {1,2,3}     command help
                1         1 help
                2         2 help
                3         3 help

            optional arguments:
              -h, --help  show this help message and exit
              --foo       foo help
            '''))

    def test_subparser_title_help(self):
        parser = ErrorRaisingArgumentParser(prog='PROG',
                                            description='main description')
        parser.add_argument('--foo', action='store_true', help='foo help')
        parser.add_argument('bar', help='bar help')
        subparsers = parser.add_subparsers(title='subcommands',
                                           description='command help',
                                           help='additional text')
        parser1 = subparsers.add_parser('1')
        parser2 = subparsers.add_parser('2')
        self.assertEqual(parser.format_usage(),
                         'usage: PROG [-h] [--foo] bar {1,2} ...\n')
        self.assertEqual(parser.format_help(), textwrap.dedent('''\
            usage: PROG [-h] [--foo] bar {1,2} ...

            main description

            positional arguments:
              bar         bar help

            optional arguments:
              -h, --help  show this help message and exit
              --foo       foo help

            subcommands:
              command help

              {1,2}       additional text
            '''))

    def _test_subparser_help(self, args_str, expected_help):
        try:
            self.parser.parse_args(args_str.split())
        except ArgumentParserError:
            err = sys.exc_info()[1]
            if err.stdout != expected_help:
                print(repr(expected_help))
                print(repr(err.stdout))
            self.assertEqual(err.stdout, expected_help)

    def test_subparser1_help(self):
        self._test_subparser_help('5.0 1 -h', textwrap.dedent('''\
            usage: PROG bar 1 [-h] [-w W] {a,b,c}

            1 description

            positional arguments:
              {a,b,c}     x help

            optional arguments:
              -h, --help  show this help message and exit
              -w W        w help
            '''))

    def test_subparser2_help(self):
        self._test_subparser_help('5.0 2 -h', textwrap.dedent('''\
            usage: PROG bar 2 [-h] [-y {1,2,3}] [z [z ...]]

            2 description

            positional arguments:
              z           z help

            optional arguments:
              -h, --help  show this help message and exit
              -y {1,2,3}  y help
            '''))

# ============
# Groups tests
# ============

class TestPositionalsGroups(TestCase):
    """Tests that order of group positionals matches construction order"""

    def test_nongroup_first(self):
        parser = ErrorRaisingArgumentParser()
        parser.add_argument('foo')
        group = parser.add_argument_group('g')
        group.add_argument('bar')
        parser.add_argument('baz')
        expected = NS(foo='1', bar='2', baz='3')
        result = parser.parse_args('1 2 3'.split())
        self.assertEqual(expected, result)

    def test_group_first(self):
        parser = ErrorRaisingArgumentParser()
        group = parser.add_argument_group('xxx')
        group.add_argument('foo')
        parser.add_argument('bar')
        parser.add_argument('baz')
        expected = NS(foo='1', bar='2', baz='3')
        result = parser.parse_args('1 2 3'.split())
        self.assertEqual(expected, result)

    def test_interleaved_groups(self):
        parser = ErrorRaisingArgumentParser()
        group = parser.add_argument_group('xxx')
        parser.add_argument('foo')
        group.add_argument('bar')
        parser.add_argument('baz')
        group = parser.add_argument_group('yyy')
        group.add_argument('frell')
        expected = NS(foo='1', bar='2', baz='3', frell='4')
        result = parser.parse_args('1 2 3 4'.split())
        self.assertEqual(expected, result)

# ===================
# Parent parser tests
# ===================

class TestParentParsers(TestCase):
    """Tests that parsers can be created with parent parsers"""

    def assertArgumentParserError(self, *args, **kwargs):
        self.assertRaises(ArgumentParserError, *args, **kwargs)

    def setUp(self):
        super(TestParentParsers, self).setUp()
        self.wxyz_parent = ErrorRaisingArgumentParser(add_help=False)
        self.wxyz_parent.add_argument('--w')
        x_group = self.wxyz_parent.add_argument_group('x')
        x_group.add_argument('-y')
        self.wxyz_parent.add_argument('z')

        self.abcd_parent = ErrorRaisingArgumentParser(add_help=False)
        self.abcd_parent.add_argument('a')
        self.abcd_parent.add_argument('-b')
        c_group = self.abcd_parent.add_argument_group('c')
        c_group.add_argument('--d')

        self.w_parent = ErrorRaisingArgumentParser(add_help=False)
        self.w_parent.add_argument('--w')

        self.z_parent = ErrorRaisingArgumentParser(add_help=False)
        self.z_parent.add_argument('z')

        # parents with mutually exclusive groups
        self.ab_mutex_parent = ErrorRaisingArgumentParser(add_help=False)
        group = self.ab_mutex_parent.add_mutually_exclusive_group()
        group.add_argument('-a', action='store_true')
        group.add_argument('-b', action='store_true')

        self.main_program = os.path.basename(sys.argv[0])

    def test_single_parent(self):
        parser = ErrorRaisingArgumentParser(parents=[self.wxyz_parent])
        self.assertEqual(parser.parse_args('-y 1 2 --w 3'.split()),
                         NS(w='3', y='1', z='2'))

    def test_single_parent_mutex(self):
        self._test_mutex_ab(self.ab_mutex_parent.parse_args)
        parser = ErrorRaisingArgumentParser(parents=[self.ab_mutex_parent])
        self._test_mutex_ab(parser.parse_args)

    def test_single_granparent_mutex(self):
        parents = [self.ab_mutex_parent]
        parser = ErrorRaisingArgumentParser(add_help=False, parents=parents)
        parser = ErrorRaisingArgumentParser(parents=[parser])
        self._test_mutex_ab(parser.parse_args)

    def _test_mutex_ab(self, parse_args):
        self.assertEqual(parse_args([]), NS(a=False, b=False))
        self.assertEqual(parse_args(['-a']), NS(a=True, b=False))
        self.assertEqual(parse_args(['-b']), NS(a=False, b=True))
        self.assertArgumentParserError(parse_args, ['-a', '-b'])
        self.assertArgumentParserError(parse_args, ['-b', '-a'])
        self.assertArgumentParserError(parse_args, ['-c'])
        self.assertArgumentParserError(parse_args, ['-a', '-c'])
        self.assertArgumentParserError(parse_args, ['-b', '-c'])

    def test_multiple_parents(self):
        parents = [self.abcd_parent, self.wxyz_parent]
        parser = ErrorRaisingArgumentParser(parents=parents)
        self.assertEqual(parser.parse_args('--d 1 --w 2 3 4'.split()),
                         NS(a='3', b=None, d='1', w='2', y=None, z='4'))

    def test_multiple_parents_mutex(self):
        parents = [self.ab_mutex_parent, self.wxyz_parent]
        parser = ErrorRaisingArgumentParser(parents=parents)
        self.assertEqual(parser.parse_args('-a --w 2 3'.split()),
                         NS(a=True, b=False, w='2', y=None, z='3'))
        self.assertArgumentParserError(
            parser.parse_args, '-a --w 2 3 -b'.split())
        self.assertArgumentParserError(
            parser.parse_args, '-a -b --w 2 3'.split())

    def test_conflicting_parents(self):
        self.assertRaises(
            argparse.ArgumentError,
            argparse.ArgumentParser,
            parents=[self.w_parent, self.wxyz_parent])

    def test_conflicting_parents_mutex(self):
        self.assertRaises(
            argparse.ArgumentError,
            argparse.ArgumentParser,
            parents=[self.abcd_parent, self.ab_mutex_parent])

    def test_same_argument_name_parents(self):
        parents = [self.wxyz_parent, self.z_parent]
        parser = ErrorRaisingArgumentParser(parents=parents)
        self.assertEqual(parser.parse_args('1 2'.split()),
                         NS(w=None, y=None, z='2'))

    def test_subparser_parents(self):
        parser = ErrorRaisingArgumentParser()
        subparsers = parser.add_subparsers()
        abcde_parser = subparsers.add_parser('bar', parents=[self.abcd_parent])
        abcde_parser.add_argument('e')
        self.assertEqual(parser.parse_args('bar -b 1 --d 2 3 4'.split()),
                         NS(a='3', b='1', d='2', e='4'))

    def test_subparser_parents_mutex(self):
        parser = ErrorRaisingArgumentParser()
        subparsers = parser.add_subparsers()
        parents = [self.ab_mutex_parent]
        abc_parser = subparsers.add_parser('foo', parents=parents)
        c_group = abc_parser.add_argument_group('c_group')
        c_group.add_argument('c')
        parents = [self.wxyz_parent, self.ab_mutex_parent]
        wxyzabe_parser = subparsers.add_parser('bar', parents=parents)
        wxyzabe_parser.add_argument('e')
        self.assertEqual(parser.parse_args('foo -a 4'.split()),
                         NS(a=True, b=False, c='4'))
        self.assertEqual(parser.parse_args('bar -b  --w 2 3 4'.split()),
                         NS(a=False, b=True, w='2', y=None, z='3', e='4'))
        self.assertArgumentParserError(
            parser.parse_args, 'foo -a -b 4'.split())
        self.assertArgumentParserError(
            parser.parse_args, 'bar -b -a 4'.split())

    def test_parent_help(self):
        parents = [self.abcd_parent, self.wxyz_parent]
        parser = ErrorRaisingArgumentParser(parents=parents)
        parser_help = parser.format_help()
        progname = self.main_program
        self.assertEqual(parser_help, textwrap.dedent('''\
            usage: {}{}[-h] [-b B] [--d D] [--w W] [-y Y] a z

            positional arguments:
              a
              z

            optional arguments:
              -h, --help  show this help message and exit
              -b B
              --w W

            c:
              --d D

            x:
              -y Y
        '''.format(progname, ' ' if progname else '' )))

    def test_groups_parents(self):
        parent = ErrorRaisingArgumentParser(add_help=False)
        g = parent.add_argument_group(title='g', description='gd')
        g.add_argument('-w')
        g.add_argument('-x')
        m = parent.add_mutually_exclusive_group()
        m.add_argument('-y')
        m.add_argument('-z')
        parser = ErrorRaisingArgumentParser(parents=[parent])

        self.assertRaises(ArgumentParserError, parser.parse_args,
            ['-y', 'Y', '-z', 'Z'])

        parser_help = parser.format_help()
        progname = self.main_program
        self.assertEqual(parser_help, textwrap.dedent('''\
            usage: {}{}[-h] [-w W] [-x X] [-y Y | -z Z]

            optional arguments:
              -h, --help  show this help message and exit
              -y Y
              -z Z

            g:
              gd

              -w W
              -x X
        '''.format(progname, ' ' if progname else '' )))

# ==============================
# Mutually exclusive group tests
# ==============================

class TestMutuallyExclusiveGroupErrors(TestCase):

    def test_invalid_add_argument_group(self):
        parser = ErrorRaisingArgumentParser()
        raises = self.assertRaises
        raises(TypeError, parser.add_mutually_exclusive_group, title='foo')

    def test_invalid_add_argument(self):
        parser = ErrorRaisingArgumentParser()
        group = parser.add_mutually_exclusive_group()
        add_argument = group.add_argument
        raises = self.assertRaises
        raises(ValueError, add_argument, '--foo', required=True)
        raises(ValueError, add_argument, 'bar')
        raises(ValueError, add_argument, 'bar', nargs='+')
        raises(ValueError, add_argument, 'bar', nargs=1)
        raises(ValueError, add_argument, 'bar', nargs=argparse.PARSER)

    def test_help(self):
        parser = ErrorRaisingArgumentParser(prog='PROG')
        group1 = parser.add_mutually_exclusive_group()
        group1.add_argument('--foo', action='store_true')
        group1.add_argument('--bar', action='store_false')
        group2 = parser.add_mutually_exclusive_group()
        group2.add_argument('--soup', action='store_true')
        group2.add_argument('--nuts', action='store_false')
        expected = '''\
            usage: PROG [-h] [--foo | --bar] [--soup | --nuts]

            optional arguments:
              -h, --help  show this help message and exit
              --foo
              --bar
              --soup
              --nuts
              '''
        self.assertEqual(parser.format_help(), textwrap.dedent(expected))

class MEMixin(object):

    def test_failures_when_not_required(self):
        parse_args = self.get_parser(required=False).parse_args
        error = ArgumentParserError
        for args_string in self.failures:
            self.assertRaises(error, parse_args, args_string.split())

    def test_failures_when_required(self):
        parse_args = self.get_parser(required=True).parse_args
        error = ArgumentParserError
        for args_string in self.failures + ['']:
            self.assertRaises(error, parse_args, args_string.split())

    def test_successes_when_not_required(self):
        parse_args = self.get_parser(required=False).parse_args
        successes = self.successes + self.successes_when_not_required
        for args_string, expected_ns in successes:
            actual_ns = parse_args(args_string.split())
            self.assertEqual(actual_ns, expected_ns)

    def test_successes_when_required(self):
        parse_args = self.get_parser(required=True).parse_args
        for args_string, expected_ns in self.successes:
            actual_ns = parse_args(args_string.split())
            self.assertEqual(actual_ns, expected_ns)

    def test_usage_when_not_required(self):
        format_usage = self.get_parser(required=False).format_usage
        expected_usage = self.usage_when_not_required
        self.assertEqual(format_usage(), textwrap.dedent(expected_usage))

    def test_usage_when_required(self):
        format_usage = self.get_parser(required=True).format_usage
        expected_usage = self.usage_when_required
        self.assertEqual(format_usage(), textwrap.dedent(expected_usage))

    def test_help_when_not_required(self):
        format_help = self.get_parser(required=False).format_help
        help = self.usage_when_not_required + self.help
        self.assertEqual(format_help(), textwrap.dedent(help))

    def test_help_when_required(self):
        format_help = self.get_parser(required=True).format_help
        help = self.usage_when_required + self.help
        self.assertEqual(format_help(), textwrap.dedent(help))


class TestMutuallyExclusiveSimple(MEMixin, TestCase):

    def get_parser(self, required=None):
        parser = ErrorRaisingArgumentParser(prog='PROG')
        group = parser.add_mutually_exclusive_group(required=required)
        group.add_argument('--bar', help='bar help')
        group.add_argument('--baz', nargs='?', const='Z', help='baz help')
        return parser

    failures = ['--bar X --baz Y', '--bar X --baz']
    successes = [
        ('--bar X', NS(bar='X', baz=None)),
        ('--bar X --bar Z', NS(bar='Z', baz=None)),
        ('--baz Y', NS(bar=None, baz='Y')),
        ('--baz', NS(bar=None, baz='Z')),
    ]
    successes_when_not_required = [
        ('', NS(bar=None, baz=None)),
    ]

    usage_when_not_required = '''\
        usage: PROG [-h] [--bar BAR | --baz [BAZ]]
        '''
    usage_when_required = '''\
        usage: PROG [-h] (--bar BAR | --baz [BAZ])
        '''
    help = '''\

        optional arguments:
          -h, --help   show this help message and exit
          --bar BAR    bar help
          --baz [BAZ]  baz help
        '''


class TestMutuallyExclusiveLong(MEMixin, TestCase):

    def get_parser(self, required=None):
        parser = ErrorRaisingArgumentParser(prog='PROG')
        parser.add_argument('--abcde', help='abcde help')
        parser.add_argument('--fghij', help='fghij help')
        group = parser.add_mutually_exclusive_group(required=required)
        group.add_argument('--klmno', help='klmno help')
        group.add_argument('--pqrst', help='pqrst help')
        return parser

    failures = ['--klmno X --pqrst Y']
    successes = [
        ('--klmno X', NS(abcde=None, fghij=None, klmno='X', pqrst=None)),
        ('--abcde Y --klmno X',
            NS(abcde='Y', fghij=None, klmno='X', pqrst=None)),
        ('--pqrst X', NS(abcde=None, fghij=None, klmno=None, pqrst='X')),
        ('--pqrst X --fghij Y',
            NS(abcde=None, fghij='Y', klmno=None, pqrst='X')),
    ]
    successes_when_not_required = [
        ('', NS(abcde=None, fghij=None, klmno=None, pqrst=None)),
    ]

    usage_when_not_required = '''\
    usage: PROG [-h] [--abcde ABCDE] [--fghij FGHIJ]
                [--klmno KLMNO | --pqrst PQRST]
    '''
    usage_when_required = '''\
    usage: PROG [-h] [--abcde ABCDE] [--fghij FGHIJ]
                (--klmno KLMNO | --pqrst PQRST)
    '''
    help = '''\

    optional arguments:
      -h, --help     show this help message and exit
      --abcde ABCDE  abcde help
      --fghij FGHIJ  fghij help
      --klmno KLMNO  klmno help
      --pqrst PQRST  pqrst help
    '''


class TestMutuallyExclusiveFirstSuppressed(MEMixin, TestCase):

    def get_parser(self, required):
        parser = ErrorRaisingArgumentParser(prog='PROG')
        group = parser.add_mutually_exclusive_group(required=required)
        group.add_argument('-x', help=argparse.SUPPRESS)
        group.add_argument('-y', action='store_false', help='y help')
        return parser

    failures = ['-x X -y']
    successes = [
        ('-x X', NS(x='X', y=True)),
        ('-x X -x Y', NS(x='Y', y=True)),
        ('-y', NS(x=None, y=False)),
    ]
    successes_when_not_required = [
        ('', NS(x=None, y=True)),
    ]

    usage_when_not_required = '''\
        usage: PROG [-h] [-y]
        '''
    usage_when_required = '''\
        usage: PROG [-h] -y
        '''
    help = '''\

        optional arguments:
          -h, --help  show this help message and exit
          -y          y help
        '''


class TestMutuallyExclusiveManySuppressed(MEMixin, TestCase):

    def get_parser(self, required):
        parser = ErrorRaisingArgumentParser(prog='PROG')
        group = parser.add_mutually_exclusive_group(required=required)
        add = group.add_argument
        add('--spam', action='store_true', help=argparse.SUPPRESS)
        add('--badger', action='store_false', help=argparse.SUPPRESS)
        add('--bladder', help=argparse.SUPPRESS)
        return parser

    failures = [
        '--spam --badger',
        '--badger --bladder B',
        '--bladder B --spam',
    ]
    successes = [
        ('--spam', NS(spam=True, badger=True, bladder=None)),
        ('--badger', NS(spam=False, badger=False, bladder=None)),
        ('--bladder B', NS(spam=False, badger=True, bladder='B')),
        ('--spam --spam', NS(spam=True, badger=True, bladder=None)),
    ]
    successes_when_not_required = [
        ('', NS(spam=False, badger=True, bladder=None)),
    ]

    usage_when_required = usage_when_not_required = '''\
        usage: PROG [-h]
        '''
    help = '''\

        optional arguments:
          -h, --help  show this help message and exit
        '''


class TestMutuallyExclusiveOptionalAndPositional(MEMixin, TestCase):

    def get_parser(self, required):
        parser = ErrorRaisingArgumentParser(prog='PROG')
        group = parser.add_mutually_exclusive_group(required=required)
        group.add_argument('--foo', action='store_true', help='FOO')
        group.add_argument('--spam', help='SPAM')
        group.add_argument('badger', nargs='*', default='X', help='BADGER')
        return parser

    failures = [
        '--foo --spam S',
        '--spam S X',
        'X --foo',
        'X Y Z --spam S',
        '--foo X Y',
    ]
    successes = [
        ('--foo', NS(foo=True, spam=None, badger='X')),
        ('--spam S', NS(foo=False, spam='S', badger='X')),
        ('X', NS(foo=False, spam=None, badger=['X'])),
        ('X Y Z', NS(foo=False, spam=None, badger=['X', 'Y', 'Z'])),
    ]
    successes_when_not_required = [
        ('', NS(foo=False, spam=None, badger='X')),
    ]

    usage_when_not_required = '''\
        usage: PROG [-h] [--foo | --spam SPAM | badger [badger ...]]
        '''
    usage_when_required = '''\
        usage: PROG [-h] (--foo | --spam SPAM | badger [badger ...])
        '''
    help = '''\

        positional arguments:
          badger       BADGER

        optional arguments:
          -h, --help   show this help message and exit
          --foo        FOO
          --spam SPAM  SPAM
        '''


class TestMutuallyExclusiveOptionalsMixed(MEMixin, TestCase):

    def get_parser(self, required):
        parser = ErrorRaisingArgumentParser(prog='PROG')
        parser.add_argument('-x', action='store_true', help='x help')
        group = parser.add_mutually_exclusive_group(required=required)
        group.add_argument('-a', action='store_true', help='a help')
        group.add_argument('-b', action='store_true', help='b help')
        parser.add_argument('-y', action='store_true', help='y help')
        group.add_argument('-c', action='store_true', help='c help')
        return parser

    failures = ['-a -b', '-b -c', '-a -c', '-a -b -c']
    successes = [
        ('-a', NS(a=True, b=False, c=False, x=False, y=False)),
        ('-b', NS(a=False, b=True, c=False, x=False, y=False)),
        ('-c', NS(a=False, b=False, c=True, x=False, y=False)),
        ('-a -x', NS(a=True, b=False, c=False, x=True, y=False)),
        ('-y -b', NS(a=False, b=True, c=False, x=False, y=True)),
        ('-x -y -c', NS(a=False, b=False, c=True, x=True, y=True)),
    ]
    successes_when_not_required = [
        ('', NS(a=False, b=False, c=False, x=False, y=False)),
        ('-x', NS(a=False, b=False, c=False, x=True, y=False)),
        ('-y', NS(a=False, b=False, c=False, x=False, y=True)),
    ]

    usage_when_required = usage_when_not_required = '''\
        usage: PROG [-h] [-x] [-a] [-b] [-y] [-c]
        '''
    help = '''\

        optional arguments:
          -h, --help  show this help message and exit
          -x          x help
          -a          a help
          -b          b help
          -y          y help
          -c          c help
        '''


class TestMutuallyExclusiveInGroup(MEMixin, TestCase):

    def get_parser(self, required=None):
        parser = ErrorRaisingArgumentParser(prog='PROG')
        titled_group = parser.add_argument_group(
            title='Titled group', description='Group description')
        mutex_group = \
            titled_group.add_mutually_exclusive_group(required=required)
        mutex_group.add_argument('--bar', help='bar help')
        mutex_group.add_argument('--baz', help='baz help')
        return parser

    failures = ['--bar X --baz Y', '--baz X --bar Y']
    successes = [
        ('--bar X', NS(bar='X', baz=None)),
        ('--baz Y', NS(bar=None, baz='Y')),
    ]
    successes_when_not_required = [
        ('', NS(bar=None, baz=None)),
    ]

    usage_when_not_required = '''\
        usage: PROG [-h] [--bar BAR | --baz BAZ]
        '''
    usage_when_required = '''\
        usage: PROG [-h] (--bar BAR | --baz BAZ)
        '''
    help = '''\

        optional arguments:
          -h, --help  show this help message and exit

        Titled group:
          Group description

          --bar BAR   bar help
          --baz BAZ   baz help
        '''


class TestMutuallyExclusiveOptionalsAndPositionalsMixed(MEMixin, TestCase):

    def get_parser(self, required):
        parser = ErrorRaisingArgumentParser(prog='PROG')
        parser.add_argument('x', help='x help')
        parser.add_argument('-y', action='store_true', help='y help')
        group = parser.add_mutually_exclusive_group(required=required)
        group.add_argument('a', nargs='?', help='a help')
        group.add_argument('-b', action='store_true', help='b help')
        group.add_argument('-c', action='store_true', help='c help')
        return parser

    failures = ['X A -b', '-b -c', '-c X A']
    successes = [
        ('X A', NS(a='A', b=False, c=False, x='X', y=False)),
        ('X -b', NS(a=None, b=True, c=False, x='X', y=False)),
        ('X -c', NS(a=None, b=False, c=True, x='X', y=False)),
        ('X A -y', NS(a='A', b=False, c=False, x='X', y=True)),
        ('X -y -b', NS(a=None, b=True, c=False, x='X', y=True)),
    ]
    successes_when_not_required = [
        ('X', NS(a=None, b=False, c=False, x='X', y=False)),
        ('X -y', NS(a=None, b=False, c=False, x='X', y=True)),
    ]

    usage_when_required = usage_when_not_required = '''\
        usage: PROG [-h] [-y] [-b] [-c] x [a]
        '''
    help = '''\

        positional arguments:
          x           x help
          a           a help

        optional arguments:
          -h, --help  show this help message and exit
          -y          y help
          -b          b help
          -c          c help
        '''

# =================================================
# Mutually exclusive group in parent parser tests
# =================================================

class MEPBase(object):

    def get_parser(self, required=None):
        parent = super(MEPBase, self).get_parser(required=required)
        parser = ErrorRaisingArgumentParser(
            prog=parent.prog, add_help=False, parents=[parent])
        return parser


class TestMutuallyExclusiveGroupErrorsParent(
    MEPBase, TestMutuallyExclusiveGroupErrors):
    pass


class TestMutuallyExclusiveSimpleParent(
    MEPBase, TestMutuallyExclusiveSimple):
    pass


class TestMutuallyExclusiveLongParent(
    MEPBase, TestMutuallyExclusiveLong):
    pass


class TestMutuallyExclusiveFirstSuppressedParent(
    MEPBase, TestMutuallyExclusiveFirstSuppressed):
    pass


class TestMutuallyExclusiveManySuppressedParent(
    MEPBase, TestMutuallyExclusiveManySuppressed):
    pass


class TestMutuallyExclusiveOptionalAndPositionalParent(
    MEPBase, TestMutuallyExclusiveOptionalAndPositional):
    pass


class TestMutuallyExclusiveOptionalsMixedParent(
    MEPBase, TestMutuallyExclusiveOptionalsMixed):
    pass


class TestMutuallyExclusiveOptionalsAndPositionalsMixedParent(
    MEPBase, TestMutuallyExclusiveOptionalsAndPositionalsMixed):
    pass

# =================
# Set default tests
# =================

class TestSetDefaults(TestCase):

    def test_set_defaults_no_args(self):
        parser = ErrorRaisingArgumentParser()
        parser.set_defaults(x='foo')
        parser.set_defaults(y='bar', z=1)
        self.assertEqual(NS(x='foo', y='bar', z=1),
                         parser.parse_args([]))
        self.assertEqual(NS(x='foo', y='bar', z=1),
                         parser.parse_args([], NS()))
        self.assertEqual(NS(x='baz', y='bar', z=1),
                         parser.parse_args([], NS(x='baz')))
        self.assertEqual(NS(x='baz', y='bar', z=2),
                         parser.parse_args([], NS(x='baz', z=2)))

    def test_set_defaults_with_args(self):
        parser = ErrorRaisingArgumentParser()
        parser.set_defaults(x='foo', y='bar')
        parser.add_argument('-x', default='xfoox')
        self.assertEqual(NS(x='xfoox', y='bar'),
                         parser.parse_args([]))
        self.assertEqual(NS(x='xfoox', y='bar'),
                         parser.parse_args([], NS()))
        self.assertEqual(NS(x='baz', y='bar'),
                         parser.parse_args([], NS(x='baz')))
        self.assertEqual(NS(x='1', y='bar'),
                         parser.parse_args('-x 1'.split()))
        self.assertEqual(NS(x='1', y='bar'),
                         parser.parse_args('-x 1'.split(), NS()))
        self.assertEqual(NS(x='1', y='bar'),
                         parser.parse_args('-x 1'.split(), NS(x='baz')))

    def test_set_defaults_subparsers(self):
        parser = ErrorRaisingArgumentParser()
        parser.set_defaults(x='foo')
        subparsers = parser.add_subparsers()
        parser_a = subparsers.add_parser('a')
        parser_a.set_defaults(y='bar')
        self.assertEqual(NS(x='foo', y='bar'),
                         parser.parse_args('a'.split()))

    def test_set_defaults_parents(self):
        parent = ErrorRaisingArgumentParser(add_help=False)
        parent.set_defaults(x='foo')
        parser = ErrorRaisingArgumentParser(parents=[parent])
        self.assertEqual(NS(x='foo'), parser.parse_args([]))

    def test_set_defaults_on_parent_and_subparser(self):
        parser = argparse.ArgumentParser()
        xparser = parser.add_subparsers().add_parser('X')
        parser.set_defaults(foo=1)
        xparser.set_defaults(foo=2)
        self.assertEqual(NS(foo=2), parser.parse_args(['X']))

    def test_set_defaults_same_as_add_argument(self):
        parser = ErrorRaisingArgumentParser()
        parser.set_defaults(w='W', x='X', y='Y', z='Z')
        parser.add_argument('-w')
        parser.add_argument('-x', default='XX')
        parser.add_argument('y', nargs='?')
        parser.add_argument('z', nargs='?', default='ZZ')

        # defaults set previously
        self.assertEqual(NS(w='W', x='XX', y='Y', z='ZZ'),
                         parser.parse_args([]))

        # reset defaults
        parser.set_defaults(w='WW', x='X', y='YY', z='Z')
        self.assertEqual(NS(w='WW', x='X', y='YY', z='Z'),
                         parser.parse_args([]))

    def test_set_defaults_same_as_add_argument_group(self):
        parser = ErrorRaisingArgumentParser()
        parser.set_defaults(w='W', x='X', y='Y', z='Z')
        group = parser.add_argument_group('foo')
        group.add_argument('-w')
        group.add_argument('-x', default='XX')
        group.add_argument('y', nargs='?')
        group.add_argument('z', nargs='?', default='ZZ')


        # defaults set previously
        self.assertEqual(NS(w='W', x='XX', y='Y', z='ZZ'),
                         parser.parse_args([]))

        # reset defaults
        parser.set_defaults(w='WW', x='X', y='YY', z='Z')
        self.assertEqual(NS(w='WW', x='X', y='YY', z='Z'),
                         parser.parse_args([]))

# =================
# Get default tests
# =================

class TestGetDefault(TestCase):

    def test_get_default(self):
        parser = ErrorRaisingArgumentParser()
        self.assertEqual(None, parser.get_default("foo"))
        self.assertEqual(None, parser.get_default("bar"))

        parser.add_argument("--foo")
        self.assertEqual(None, parser.get_default("foo"))
        self.assertEqual(None, parser.get_default("bar"))

        parser.add_argument("--bar", type=int, default=42)
        self.assertEqual(None, parser.get_default("foo"))
        self.assertEqual(42, parser.get_default("bar"))

        parser.set_defaults(foo="badger")
        self.assertEqual("badger", parser.get_default("foo"))
        self.assertEqual(42, parser.get_default("bar"))

# ==========================
# Namespace 'contains' tests
# ==========================

class TestNamespaceContainsSimple(TestCase):

    def test_empty(self):
        ns = argparse.Namespace()
        self.assertEqual('' in ns, False)
        self.assertEqual('' not in ns, True)
        self.assertEqual('x' in ns, False)

    def test_non_empty(self):
        ns = argparse.Namespace(x=1, y=2)
        self.assertEqual('x' in ns, True)
        self.assertEqual('x' not in ns, False)
        self.assertEqual('y' in ns, True)
        self.assertEqual('' in ns, False)
        self.assertEqual('xx' in ns, False)
        self.assertEqual('z' in ns, False)

# =====================
# Help formatting tests
# =====================

class TestHelpFormattingMetaclass(type):

    def __init__(cls, name, bases, bodydict):
        if name == 'HelpTestCase':
            return

        class AddTests(object):

            def __init__(self, test_class, func_suffix, std_name):
                self.func_suffix = func_suffix
                self.std_name = std_name

                for test_func in [self.test_format,
                                  self.test_print,
                                  self.test_print_file]:
                    test_name = '%s_%s' % (test_func.__name__, func_suffix)

                    def test_wrapper(self, test_func=test_func):
                        test_func(self)
                    try:
                        test_wrapper.__name__ = test_name
                    except TypeError:
                        pass
                    setattr(test_class, test_name, test_wrapper)

            def _get_parser(self, tester):
                parser = argparse.ArgumentParser(
                    *tester.parser_signature.args,
                    **tester.parser_signature.kwargs)
                for argument_sig in getattr(tester, 'argument_signatures', []):
                    parser.add_argument(*argument_sig.args,
                                        **argument_sig.kwargs)
                group_sigs = getattr(tester, 'argument_group_signatures', [])
                for group_sig, argument_sigs in group_sigs:
                    group = parser.add_argument_group(*group_sig.args,
                                                      **group_sig.kwargs)
                    for argument_sig in argument_sigs:
                        group.add_argument(*argument_sig.args,
                                           **argument_sig.kwargs)
                subparsers_sigs = getattr(tester, 'subparsers_signatures', [])
                if subparsers_sigs:
                    subparsers = parser.add_subparsers()
                    for subparser_sig in subparsers_sigs:
                        subparsers.add_parser(*subparser_sig.args,
                                               **subparser_sig.kwargs)
                return parser

            def _test(self, tester, parser_text):
                expected_text = getattr(tester, self.func_suffix)
                expected_text = textwrap.dedent(expected_text)
                if expected_text != parser_text:
                    print(repr(expected_text))
                    print(repr(parser_text))
                    for char1, char2 in zip(expected_text, parser_text):
                        if char1 != char2:
                            print('first diff: %r %r' % (char1, char2))
                            break
                tester.assertEqual(expected_text, parser_text)

            def test_format(self, tester):
                parser = self._get_parser(tester)
                format = getattr(parser, 'format_%s' % self.func_suffix)
                self._test(tester, format())

            def test_print(self, tester):
                parser = self._get_parser(tester)
                print_ = getattr(parser, 'print_%s' % self.func_suffix)
                old_stream = getattr(sys, self.std_name)
                setattr(sys, self.std_name, StdIOBuffer())
                try:
                    print_()
                    parser_text = getattr(sys, self.std_name).getvalue()
                finally:
                    setattr(sys, self.std_name, old_stream)
                self._test(tester, parser_text)

            def test_print_file(self, tester):
                parser = self._get_parser(tester)
                print_ = getattr(parser, 'print_%s' % self.func_suffix)
                sfile = StdIOBuffer()
                print_(sfile)
                parser_text = sfile.getvalue()
                self._test(tester, parser_text)

        # add tests for {format,print}_{usage,help,version}
        for func_suffix, std_name in [('usage', 'stdout'),
                                      ('help', 'stdout'),
                                      ('version', 'stderr')]:
            AddTests(cls, func_suffix, std_name)

bases = TestCase,
HelpTestCase = TestHelpFormattingMetaclass('HelpTestCase', bases, {})


class TestHelpBiggerOptionals(HelpTestCase):
    """Make sure that argument help aligns when options are longer"""

    parser_signature = Sig(prog='PROG', description='DESCRIPTION',
                           epilog='EPILOG', version='0.1')
    argument_signatures = [
        Sig('-x', action='store_true', help='X HELP'),
        Sig('--y', help='Y HELP'),
        Sig('foo', help='FOO HELP'),
        Sig('bar', help='BAR HELP'),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG [-h] [-v] [-x] [--y Y] foo bar
        '''
    help = usage + '''\

        DESCRIPTION

        positional arguments:
          foo            FOO HELP
          bar            BAR HELP

        optional arguments:
          -h, --help     show this help message and exit
          -v, --version  show program's version number and exit
          -x             X HELP
          --y Y          Y HELP

        EPILOG
    '''
    version = '''\
        0.1
        '''

class TestShortColumns(HelpTestCase):
    '''Test extremely small number of columns.

    TestCase prevents "COLUMNS" from being too small in the tests themselves,
    but we don't want any exceptions thrown in such case. Only ugly representation.
    '''
    def setUp(self):
        env = test_support.EnvironmentVarGuard()
        env.set("COLUMNS", '15')
        self.addCleanup(env.__exit__)

    parser_signature            = TestHelpBiggerOptionals.parser_signature
    argument_signatures         = TestHelpBiggerOptionals.argument_signatures
    argument_group_signatures   = TestHelpBiggerOptionals.argument_group_signatures
    usage = '''\
        usage: PROG
               [-h]
               [-v]
               [-x]
               [--y Y]
               foo
               bar
        '''
    help = usage + '''\

        DESCRIPTION

        positional arguments:
          foo
            FOO HELP
          bar
            BAR HELP

        optional arguments:
          -h, --help
            show this
            help
            message and
            exit
          -v, --version
            show
            program's
            version
            number and
            exit
          -x
            X HELP
          --y Y
            Y HELP

        EPILOG
    '''
    version                     = TestHelpBiggerOptionals.version


class TestHelpBiggerOptionalGroups(HelpTestCase):
    """Make sure that argument help aligns when options are longer"""

    parser_signature = Sig(prog='PROG', description='DESCRIPTION',
                           epilog='EPILOG', version='0.1')
    argument_signatures = [
        Sig('-x', action='store_true', help='X HELP'),
        Sig('--y', help='Y HELP'),
        Sig('foo', help='FOO HELP'),
        Sig('bar', help='BAR HELP'),
    ]
    argument_group_signatures = [
        (Sig('GROUP TITLE', description='GROUP DESCRIPTION'), [
            Sig('baz', help='BAZ HELP'),
            Sig('-z', nargs='+', help='Z HELP')]),
    ]
    usage = '''\
        usage: PROG [-h] [-v] [-x] [--y Y] [-z Z [Z ...]] foo bar baz
        '''
    help = usage + '''\

        DESCRIPTION

        positional arguments:
          foo            FOO HELP
          bar            BAR HELP

        optional arguments:
          -h, --help     show this help message and exit
          -v, --version  show program's version number and exit
          -x             X HELP
          --y Y          Y HELP

        GROUP TITLE:
          GROUP DESCRIPTION

          baz            BAZ HELP
          -z Z [Z ...]   Z HELP

        EPILOG
    '''
    version = '''\
        0.1
        '''


class TestHelpBiggerPositionals(HelpTestCase):
    """Make sure that help aligns when arguments are longer"""

    parser_signature = Sig(usage='USAGE', description='DESCRIPTION')
    argument_signatures = [
        Sig('-x', action='store_true', help='X HELP'),
        Sig('--y', help='Y HELP'),
        Sig('ekiekiekifekang', help='EKI HELP'),
        Sig('bar', help='BAR HELP'),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: USAGE
        '''
    help = usage + '''\

        DESCRIPTION

        positional arguments:
          ekiekiekifekang  EKI HELP
          bar              BAR HELP

        optional arguments:
          -h, --help       show this help message and exit
          -x               X HELP
          --y Y            Y HELP
        '''

    version = ''


class TestHelpReformatting(HelpTestCase):
    """Make sure that text after short names starts on the first line"""

    parser_signature = Sig(
        prog='PROG',
        description='   oddly    formatted\n'
                    'description\n'
                    '\n'
                    'that is so long that it should go onto multiple '
                    'lines when wrapped')
    argument_signatures = [
        Sig('-x', metavar='XX', help='oddly\n'
                                     '    formatted -x help'),
        Sig('y', metavar='yyy', help='normal y help'),
    ]
    argument_group_signatures = [
        (Sig('title', description='\n'
                                  '    oddly formatted group\n'
                                  '\n'
                                  'description'),
         [Sig('-a', action='store_true',
              help=' oddly \n'
                   'formatted    -a  help  \n'
                   '    again, so long that it should be wrapped over '
                   'multiple lines')]),
    ]
    usage = '''\
        usage: PROG [-h] [-x XX] [-a] yyy
        '''
    help = usage + '''\

        oddly formatted description that is so long that it should go onto \
multiple
        lines when wrapped

        positional arguments:
          yyy         normal y help

        optional arguments:
          -h, --help  show this help message and exit
          -x XX       oddly formatted -x help

        title:
          oddly formatted group description

          -a          oddly formatted -a help again, so long that it should \
be wrapped
                      over multiple lines
        '''
    version = ''


class TestHelpWrappingShortNames(HelpTestCase):
    """Make sure that text after short names starts on the first line"""

    parser_signature = Sig(prog='PROG', description= 'D\nD' * 30)
    argument_signatures = [
        Sig('-x', metavar='XX', help='XHH HX' * 20),
        Sig('y', metavar='yyy', help='YH YH' * 20),
    ]
    argument_group_signatures = [
        (Sig('ALPHAS'), [
            Sig('-a', action='store_true', help='AHHH HHA' * 10)]),
    ]
    usage = '''\
        usage: PROG [-h] [-x XX] [-a] yyy
        '''
    help = usage + '''\

        D DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD \
DD DD DD
        DD DD DD DD D

        positional arguments:
          yyy         YH YHYH YHYH YHYH YHYH YHYH YHYH YHYH YHYH YHYH YHYH \
YHYH YHYH
                      YHYH YHYH YHYH YHYH YHYH YHYH YHYH YH

        optional arguments:
          -h, --help  show this help message and exit
          -x XX       XHH HXXHH HXXHH HXXHH HXXHH HXXHH HXXHH HXXHH HXXHH \
HXXHH HXXHH
                      HXXHH HXXHH HXXHH HXXHH HXXHH HXXHH HXXHH HXXHH HXXHH HX

        ALPHAS:
          -a          AHHH HHAAHHH HHAAHHH HHAAHHH HHAAHHH HHAAHHH HHAAHHH \
HHAAHHH
                      HHAAHHH HHAAHHH HHA
        '''
    version = ''


class TestHelpWrappingLongNames(HelpTestCase):
    """Make sure that text after long names starts on the next line"""

    parser_signature = Sig(usage='USAGE', description= 'D D' * 30,
                           version='V V'*30)
    argument_signatures = [
        Sig('-x', metavar='X' * 25, help='XH XH' * 20),
        Sig('y', metavar='y' * 25, help='YH YH' * 20),
    ]
    argument_group_signatures = [
        (Sig('ALPHAS'), [
            Sig('-a', metavar='A' * 25, help='AH AH' * 20),
            Sig('z', metavar='z' * 25, help='ZH ZH' * 20)]),
    ]
    usage = '''\
        usage: USAGE
        '''
    help = usage + '''\

        D DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD DD \
DD DD DD
        DD DD DD DD D

        positional arguments:
          yyyyyyyyyyyyyyyyyyyyyyyyy
                                YH YHYH YHYH YHYH YHYH YHYH YHYH YHYH YHYH \
YHYH YHYH
                                YHYH YHYH YHYH YHYH YHYH YHYH YHYH YHYH YHYH YH

        optional arguments:
          -h, --help            show this help message and exit
          -v, --version         show program's version number and exit
          -x XXXXXXXXXXXXXXXXXXXXXXXXX
                                XH XHXH XHXH XHXH XHXH XHXH XHXH XHXH XHXH \
XHXH XHXH
                                XHXH XHXH XHXH XHXH XHXH XHXH XHXH XHXH XHXH XH

        ALPHAS:
          -a AAAAAAAAAAAAAAAAAAAAAAAAA
                                AH AHAH AHAH AHAH AHAH AHAH AHAH AHAH AHAH \
AHAH AHAH
                                AHAH AHAH AHAH AHAH AHAH AHAH AHAH AHAH AHAH AH
          zzzzzzzzzzzzzzzzzzzzzzzzz
                                ZH ZHZH ZHZH ZHZH ZHZH ZHZH ZHZH ZHZH ZHZH \
ZHZH ZHZH
                                ZHZH ZHZH ZHZH ZHZH ZHZH ZHZH ZHZH ZHZH ZHZH ZH
        '''
    version = '''\
        V VV VV VV VV VV VV VV VV VV VV VV VV VV VV VV VV VV VV VV VV VV VV \
VV VV VV
        VV VV VV VV V
        '''


class TestHelpUsage(HelpTestCase):
    """Test basic usage messages"""

    parser_signature = Sig(prog='PROG')
    argument_signatures = [
        Sig('-w', nargs='+', help='w'),
        Sig('-x', nargs='*', help='x'),
        Sig('a', help='a'),
        Sig('b', help='b', nargs=2),
        Sig('c', help='c', nargs='?'),
    ]
    argument_group_signatures = [
        (Sig('group'), [
            Sig('-y', nargs='?', help='y'),
            Sig('-z', nargs=3, help='z'),
            Sig('d', help='d', nargs='*'),
            Sig('e', help='e', nargs='+'),
        ])
    ]
    usage = '''\
        usage: PROG [-h] [-w W [W ...]] [-x [X [X ...]]] [-y [Y]] [-z Z Z Z]
                    a b b [c] [d [d ...]] e [e ...]
        '''
    help = usage + '''\

        positional arguments:
          a               a
          b               b
          c               c

        optional arguments:
          -h, --help      show this help message and exit
          -w W [W ...]    w
          -x [X [X ...]]  x

        group:
          -y [Y]          y
          -z Z Z Z        z
          d               d
          e               e
        '''
    version = ''


class TestHelpOnlyUserGroups(HelpTestCase):
    """Test basic usage messages"""

    parser_signature = Sig(prog='PROG', add_help=False)
    argument_signatures = []
    argument_group_signatures = [
        (Sig('xxxx'), [
            Sig('-x', help='x'),
            Sig('a', help='a'),
        ]),
        (Sig('yyyy'), [
            Sig('b', help='b'),
            Sig('-y', help='y'),
        ]),
    ]
    usage = '''\
        usage: PROG [-x X] [-y Y] a b
        '''
    help = usage + '''\

        xxxx:
          -x X  x
          a     a

        yyyy:
          b     b
          -y Y  y
        '''
    version = ''


class TestHelpUsageLongProg(HelpTestCase):
    """Test usage messages where the prog is long"""

    parser_signature = Sig(prog='P' * 60)
    argument_signatures = [
        Sig('-w', metavar='W'),
        Sig('-x', metavar='X'),
        Sig('a'),
        Sig('b'),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
               [-h] [-w W] [-x X] a b
        '''
    help = usage + '''\

        positional arguments:
          a
          b

        optional arguments:
          -h, --help  show this help message and exit
          -w W
          -x X
        '''
    version = ''


class TestHelpUsageLongProgOptionsWrap(HelpTestCase):
    """Test usage messages where the prog is long and the optionals wrap"""

    parser_signature = Sig(prog='P' * 60)
    argument_signatures = [
        Sig('-w', metavar='W' * 25),
        Sig('-x', metavar='X' * 25),
        Sig('-y', metavar='Y' * 25),
        Sig('-z', metavar='Z' * 25),
        Sig('a'),
        Sig('b'),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
               [-h] [-w WWWWWWWWWWWWWWWWWWWWWWWWW] \
[-x XXXXXXXXXXXXXXXXXXXXXXXXX]
               [-y YYYYYYYYYYYYYYYYYYYYYYYYY] [-z ZZZZZZZZZZZZZZZZZZZZZZZZZ]
               a b
        '''
    help = usage + '''\

        positional arguments:
          a
          b

        optional arguments:
          -h, --help            show this help message and exit
          -w WWWWWWWWWWWWWWWWWWWWWWWWW
          -x XXXXXXXXXXXXXXXXXXXXXXXXX
          -y YYYYYYYYYYYYYYYYYYYYYYYYY
          -z ZZZZZZZZZZZZZZZZZZZZZZZZZ
        '''
    version = ''


class TestHelpUsageLongProgPositionalsWrap(HelpTestCase):
    """Test usage messages where the prog is long and the positionals wrap"""

    parser_signature = Sig(prog='P' * 60, add_help=False)
    argument_signatures = [
        Sig('a' * 25),
        Sig('b' * 25),
        Sig('c' * 25),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
               aaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbb
               ccccccccccccccccccccccccc
        '''
    help = usage + '''\

        positional arguments:
          aaaaaaaaaaaaaaaaaaaaaaaaa
          bbbbbbbbbbbbbbbbbbbbbbbbb
          ccccccccccccccccccccccccc
        '''
    version = ''


class TestHelpUsageOptionalsWrap(HelpTestCase):
    """Test usage messages where the optionals wrap"""

    parser_signature = Sig(prog='PROG')
    argument_signatures = [
        Sig('-w', metavar='W' * 25),
        Sig('-x', metavar='X' * 25),
        Sig('-y', metavar='Y' * 25),
        Sig('-z', metavar='Z' * 25),
        Sig('a'),
        Sig('b'),
        Sig('c'),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG [-h] [-w WWWWWWWWWWWWWWWWWWWWWWWWW] \
[-x XXXXXXXXXXXXXXXXXXXXXXXXX]
                    [-y YYYYYYYYYYYYYYYYYYYYYYYYY] \
[-z ZZZZZZZZZZZZZZZZZZZZZZZZZ]
                    a b c
        '''
    help = usage + '''\

        positional arguments:
          a
          b
          c

        optional arguments:
          -h, --help            show this help message and exit
          -w WWWWWWWWWWWWWWWWWWWWWWWWW
          -x XXXXXXXXXXXXXXXXXXXXXXXXX
          -y YYYYYYYYYYYYYYYYYYYYYYYYY
          -z ZZZZZZZZZZZZZZZZZZZZZZZZZ
        '''
    version = ''


class TestHelpUsagePositionalsWrap(HelpTestCase):
    """Test usage messages where the positionals wrap"""

    parser_signature = Sig(prog='PROG')
    argument_signatures = [
        Sig('-x'),
        Sig('-y'),
        Sig('-z'),
        Sig('a' * 25),
        Sig('b' * 25),
        Sig('c' * 25),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG [-h] [-x X] [-y Y] [-z Z]
                    aaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbb
                    ccccccccccccccccccccccccc
        '''
    help = usage + '''\

        positional arguments:
          aaaaaaaaaaaaaaaaaaaaaaaaa
          bbbbbbbbbbbbbbbbbbbbbbbbb
          ccccccccccccccccccccccccc

        optional arguments:
          -h, --help            show this help message and exit
          -x X
          -y Y
          -z Z
        '''
    version = ''


class TestHelpUsageOptionalsPositionalsWrap(HelpTestCase):
    """Test usage messages where the optionals and positionals wrap"""

    parser_signature = Sig(prog='PROG')
    argument_signatures = [
        Sig('-x', metavar='X' * 25),
        Sig('-y', metavar='Y' * 25),
        Sig('-z', metavar='Z' * 25),
        Sig('a' * 25),
        Sig('b' * 25),
        Sig('c' * 25),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG [-h] [-x XXXXXXXXXXXXXXXXXXXXXXXXX] \
[-y YYYYYYYYYYYYYYYYYYYYYYYYY]
                    [-z ZZZZZZZZZZZZZZZZZZZZZZZZZ]
                    aaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbb
                    ccccccccccccccccccccccccc
        '''
    help = usage + '''\

        positional arguments:
          aaaaaaaaaaaaaaaaaaaaaaaaa
          bbbbbbbbbbbbbbbbbbbbbbbbb
          ccccccccccccccccccccccccc

        optional arguments:
          -h, --help            show this help message and exit
          -x XXXXXXXXXXXXXXXXXXXXXXXXX
          -y YYYYYYYYYYYYYYYYYYYYYYYYY
          -z ZZZZZZZZZZZZZZZZZZZZZZZZZ
        '''
    version = ''


class TestHelpUsageOptionalsOnlyWrap(HelpTestCase):
    """Test usage messages where there are only optionals and they wrap"""

    parser_signature = Sig(prog='PROG')
    argument_signatures = [
        Sig('-x', metavar='X' * 25),
        Sig('-y', metavar='Y' * 25),
        Sig('-z', metavar='Z' * 25),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG [-h] [-x XXXXXXXXXXXXXXXXXXXXXXXXX] \
[-y YYYYYYYYYYYYYYYYYYYYYYYYY]
                    [-z ZZZZZZZZZZZZZZZZZZZZZZZZZ]
        '''
    help = usage + '''\

        optional arguments:
          -h, --help            show this help message and exit
          -x XXXXXXXXXXXXXXXXXXXXXXXXX
          -y YYYYYYYYYYYYYYYYYYYYYYYYY
          -z ZZZZZZZZZZZZZZZZZZZZZZZZZ
        '''
    version = ''


class TestHelpUsagePositionalsOnlyWrap(HelpTestCase):
    """Test usage messages where there are only positionals and they wrap"""

    parser_signature = Sig(prog='PROG', add_help=False)
    argument_signatures = [
        Sig('a' * 25),
        Sig('b' * 25),
        Sig('c' * 25),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG aaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbb
                    ccccccccccccccccccccccccc
        '''
    help = usage + '''\

        positional arguments:
          aaaaaaaaaaaaaaaaaaaaaaaaa
          bbbbbbbbbbbbbbbbbbbbbbbbb
          ccccccccccccccccccccccccc
        '''
    version = ''


class TestHelpVariableExpansion(HelpTestCase):
    """Test that variables are expanded properly in help messages"""

    parser_signature = Sig(prog='PROG')
    argument_signatures = [
        Sig('-x', type=int,
            help='x %(prog)s %(default)s %(type)s %%'),
        Sig('-y', action='store_const', default=42, const='XXX',
            help='y %(prog)s %(default)s %(const)s'),
        Sig('--foo', choices='abc',
            help='foo %(prog)s %(default)s %(choices)s'),
        Sig('--bar', default='baz', choices=[1, 2], metavar='BBB',
            help='bar %(prog)s %(default)s %(dest)s'),
        Sig('spam', help='spam %(prog)s %(default)s'),
        Sig('badger', default=0.5, help='badger %(prog)s %(default)s'),
    ]
    argument_group_signatures = [
        (Sig('group'), [
            Sig('-a', help='a %(prog)s %(default)s'),
            Sig('-b', default=-1, help='b %(prog)s %(default)s'),
        ])
    ]
    usage = ('''\
        usage: PROG [-h] [-x X] [-y] [--foo {a,b,c}] [--bar BBB] [-a A] [-b B]
                    spam badger
        ''')
    help = usage + '''\

        positional arguments:
          spam           spam PROG None
          badger         badger PROG 0.5

        optional arguments:
          -h, --help     show this help message and exit
          -x X           x PROG None int %
          -y             y PROG 42 XXX
          --foo {a,b,c}  foo PROG None a, b, c
          --bar BBB      bar PROG baz bar

        group:
          -a A           a PROG None
          -b B           b PROG -1
        '''
    version = ''


class TestHelpVariableExpansionUsageSupplied(HelpTestCase):
    """Test that variables are expanded properly when usage= is present"""

    parser_signature = Sig(prog='PROG', usage='%(prog)s FOO')
    argument_signatures = []
    argument_group_signatures = []
    usage = ('''\
        usage: PROG FOO
        ''')
    help = usage + '''\

        optional arguments:
          -h, --help  show this help message and exit
        '''
    version = ''


class TestHelpVariableExpansionNoArguments(HelpTestCase):
    """Test that variables are expanded properly with no arguments"""

    parser_signature = Sig(prog='PROG', add_help=False)
    argument_signatures = []
    argument_group_signatures = []
    usage = ('''\
        usage: PROG
        ''')
    help = usage
    version = ''


class TestHelpSuppressUsage(HelpTestCase):
    """Test that items can be suppressed in usage messages"""

    parser_signature = Sig(prog='PROG', usage=argparse.SUPPRESS)
    argument_signatures = [
        Sig('--foo', help='foo help'),
        Sig('spam', help='spam help'),
    ]
    argument_group_signatures = []
    help = '''\
        positional arguments:
          spam        spam help

        optional arguments:
          -h, --help  show this help message and exit
          --foo FOO   foo help
        '''
    usage = ''
    version = ''


class TestHelpSuppressOptional(HelpTestCase):
    """Test that optional arguments can be suppressed in help messages"""

    parser_signature = Sig(prog='PROG', add_help=False)
    argument_signatures = [
        Sig('--foo', help=argparse.SUPPRESS),
        Sig('spam', help='spam help'),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG spam
        '''
    help = usage + '''\

        positional arguments:
          spam  spam help
        '''
    version = ''


class TestHelpSuppressOptionalGroup(HelpTestCase):
    """Test that optional groups can be suppressed in help messages"""

    parser_signature = Sig(prog='PROG')
    argument_signatures = [
        Sig('--foo', help='foo help'),
        Sig('spam', help='spam help'),
    ]
    argument_group_signatures = [
        (Sig('group'), [Sig('--bar', help=argparse.SUPPRESS)]),
    ]
    usage = '''\
        usage: PROG [-h] [--foo FOO] spam
        '''
    help = usage + '''\

        positional arguments:
          spam        spam help

        optional arguments:
          -h, --help  show this help message and exit
          --foo FOO   foo help
        '''
    version = ''


class TestHelpSuppressPositional(HelpTestCase):
    """Test that positional arguments can be suppressed in help messages"""

    parser_signature = Sig(prog='PROG')
    argument_signatures = [
        Sig('--foo', help='foo help'),
        Sig('spam', help=argparse.SUPPRESS),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG [-h] [--foo FOO]
        '''
    help = usage + '''\

        optional arguments:
          -h, --help  show this help message and exit
          --foo FOO   foo help
        '''
    version = ''


class TestHelpRequiredOptional(HelpTestCase):
    """Test that required options don't look optional"""

    parser_signature = Sig(prog='PROG')
    argument_signatures = [
        Sig('--foo', required=True, help='foo help'),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG [-h] --foo FOO
        '''
    help = usage + '''\

        optional arguments:
          -h, --help  show this help message and exit
          --foo FOO   foo help
        '''
    version = ''


class TestHelpAlternatePrefixChars(HelpTestCase):
    """Test that options display with different prefix characters"""

    parser_signature = Sig(prog='PROG', prefix_chars='^;', add_help=False)
    argument_signatures = [
        Sig('^^foo', action='store_true', help='foo help'),
        Sig(';b', ';;bar', help='bar help'),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG [^^foo] [;b BAR]
        '''
    help = usage + '''\

        optional arguments:
          ^^foo              foo help
          ;b BAR, ;;bar BAR  bar help
        '''
    version = ''


class TestHelpNoHelpOptional(HelpTestCase):
    """Test that the --help argument can be suppressed help messages"""

    parser_signature = Sig(prog='PROG', add_help=False)
    argument_signatures = [
        Sig('--foo', help='foo help'),
        Sig('spam', help='spam help'),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG [--foo FOO] spam
        '''
    help = usage + '''\

        positional arguments:
          spam       spam help

        optional arguments:
          --foo FOO  foo help
        '''
    version = ''


class TestHelpVersionOptional(HelpTestCase):
    """Test that the --version argument can be suppressed help messages"""

    parser_signature = Sig(prog='PROG', version='1.0')
    argument_signatures = [
        Sig('--foo', help='foo help'),
        Sig('spam', help='spam help'),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG [-h] [-v] [--foo FOO] spam
        '''
    help = usage + '''\

        positional arguments:
          spam           spam help

        optional arguments:
          -h, --help     show this help message and exit
          -v, --version  show program's version number and exit
          --foo FOO      foo help
        '''
    version = '''\
        1.0
        '''


class TestHelpNone(HelpTestCase):
    """Test that no errors occur if no help is specified"""

    parser_signature = Sig(prog='PROG')
    argument_signatures = [
        Sig('--foo'),
        Sig('spam'),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG [-h] [--foo FOO] spam
        '''
    help = usage + '''\

        positional arguments:
          spam

        optional arguments:
          -h, --help  show this help message and exit
          --foo FOO
        '''
    version = ''


class TestHelpTupleMetavar(HelpTestCase):
    """Test specifying metavar as a tuple"""

    parser_signature = Sig(prog='PROG')
    argument_signatures = [
        Sig('-w', help='w', nargs='+', metavar=('W1', 'W2')),
        Sig('-x', help='x', nargs='*', metavar=('X1', 'X2')),
        Sig('-y', help='y', nargs=3, metavar=('Y1', 'Y2', 'Y3')),
        Sig('-z', help='z', nargs='?', metavar=('Z1', )),
    ]
    argument_group_signatures = []
    usage = '''\
        usage: PROG [-h] [-w W1 [W2 ...]] [-x [X1 [X2 ...]]] [-y Y1 Y2 Y3] \
[-z [Z1]]
        '''
    help = usage + '''\

        optional arguments:
          -h, --help        show this help message and exit
          -w W1 [W2 ...]    w
          -x [X1 [X2 ...]]  x
          -y Y1 Y2 Y3       y
          -z [Z1]           z
        '''
    version = ''


class TestHelpRawText(HelpTestCase):
    """Test the RawTextHelpFormatter"""

    parser_signature = Sig(
        prog='PROG', formatter_class=argparse.RawTextHelpFormatter,
        description='Keep the formatting\n'
                    '    exactly as it is written\n'
                    '\n'
                    'here\n')

    argument_signatures = [
        Sig('--foo', help='    foo help should also\n'
                          'appear as given here'),
        Sig('spam', help='spam help'),
    ]
    argument_group_signatures = [
        (Sig('title', description='    This text\n'
                                  '  should be indented\n'
                                  '    exactly like it is here\n'),
         [Sig('--bar', help='bar help')]),
    ]
    usage = '''\
        usage: PROG [-h] [--foo FOO] [--bar BAR] spam
        '''
    help = usage + '''\

        Keep the formatting
            exactly as it is written

        here

        positional arguments:
          spam        spam help

        optional arguments:
          -h, --help  show this help message and exit
          --foo FOO       foo help should also
                      appear as given here

        title:
              This text
            should be indented
              exactly like it is here

          --bar BAR   bar help
        '''
    version = ''


class TestHelpRawDescription(HelpTestCase):
    """Test the RawTextHelpFormatter"""

    parser_signature = Sig(
        prog='PROG', formatter_class=argparse.RawDescriptionHelpFormatter,
        description='Keep the formatting\n'
                    '    exactly as it is written\n'
                    '\n'
                    'here\n')

    argument_signatures = [
        Sig('--foo', help='  foo help should not\n'
                          '    retain this odd formatting'),
        Sig('spam', help='spam help'),
    ]
    argument_group_signatures = [
        (Sig('title', description='    This text\n'
                                  '  should be indented\n'
                                  '    exactly like it is here\n'),
         [Sig('--bar', help='bar help')]),
    ]
    usage = '''\
        usage: PROG [-h] [--foo FOO] [--bar BAR] spam
        '''
    help = usage + '''\

        Keep the formatting
            exactly as it is written

        here

        positional arguments:
          spam        spam help

        optional arguments:
          -h, --help  show this help message and exit
          --foo FOO   foo help should not retain this odd formatting

        title:
              This text
            should be indented
              exactly like it is here

          --bar BAR   bar help
        '''
    version = ''


class TestHelpArgumentDefaults(HelpTestCase):
    """Test the ArgumentDefaultsHelpFormatter"""

    parser_signature = Sig(
        prog='PROG', formatter_class=argparse.ArgumentDefaultsHelpFormatter,
        description='description')

    argument_signatures = [
        Sig('--foo', help='foo help - oh and by the way, %(default)s'),
        Sig('--bar', action='store_true', help='bar help'),
        Sig('spam', help='spam help'),
        Sig('badger', nargs='?', default='wooden', help='badger help'),
    ]
    argument_group_signatures = [
        (Sig('title', description='description'),
         [Sig('--baz', type=int, default=42, help='baz help')]),
    ]
    usage = '''\
        usage: PROG [-h] [--foo FOO] [--bar] [--baz BAZ] spam [badger]
        '''
    help = usage + '''\

        description

        positional arguments:
          spam        spam help
          badger      badger help (default: wooden)

        optional arguments:
          -h, --help  show this help message and exit
          --foo FOO   foo help - oh and by the way, None
          --bar       bar help (default: False)

        title:
          description

          --baz BAZ   baz help (default: 42)
        '''
    version = ''

class TestHelpVersionAction(HelpTestCase):
    """Test the default help for the version action"""

    parser_signature = Sig(prog='PROG', description='description')
    argument_signatures = [Sig('-V', '--version', action='version', version='3.6')]
    argument_group_signatures = []
    usage = '''\
        usage: PROG [-h] [-V]
        '''
    help = usage + '''\

        description

        optional arguments:
          -h, --help     show this help message and exit
          -V, --version  show program's version number and exit
        '''
    version = ''

class TestHelpSubparsersOrdering(HelpTestCase):
    """Test ordering of subcommands in help matches the code"""
    parser_signature = Sig(prog='PROG',
                           description='display some subcommands',
                           version='0.1')

    subparsers_signatures = [Sig(name=name)
                             for name in ('a', 'b', 'c', 'd', 'e')]

    usage = '''\
        usage: PROG [-h] [-v] {a,b,c,d,e} ...
        '''

    help = usage + '''\

        display some subcommands

        positional arguments:
          {a,b,c,d,e}

        optional arguments:
          -h, --help     show this help message and exit
          -v, --version  show program's version number and exit
        '''

    version = '''\
        0.1
        '''

class TestHelpSubparsersWithHelpOrdering(HelpTestCase):
    """Test ordering of subcommands in help matches the code"""
    parser_signature = Sig(prog='PROG',
                           description='display some subcommands',
                           version='0.1')

    subcommand_data = (('a', 'a subcommand help'),
                       ('b', 'b subcommand help'),
                       ('c', 'c subcommand help'),
                       ('d', 'd subcommand help'),
                       ('e', 'e subcommand help'),
                       )

    subparsers_signatures = [Sig(name=name, help=help)
                             for name, help in subcommand_data]

    usage = '''\
        usage: PROG [-h] [-v] {a,b,c,d,e} ...
        '''

    help = usage + '''\

        display some subcommands

        positional arguments:
          {a,b,c,d,e}
            a            a subcommand help
            b            b subcommand help
            c            c subcommand help
            d            d subcommand help
            e            e subcommand help

        optional arguments:
          -h, --help     show this help message and exit
          -v, --version  show program's version number and exit
        '''

    version = '''\
        0.1
        '''


# =====================================
# Optional/Positional constructor tests
# =====================================

class TestInvalidArgumentConstructors(TestCase):
    """Test a bunch of invalid Argument constructors"""

    def assertTypeError(self, *args, **kwargs):
        parser = argparse.ArgumentParser()
        self.assertRaises(TypeError, parser.add_argument,
                          *args, **kwargs)

    def assertValueError(self, *args, **kwargs):
        parser = argparse.ArgumentParser()
        self.assertRaises(ValueError, parser.add_argument,
                          *args, **kwargs)

    def test_invalid_keyword_arguments(self):
        self.assertTypeError('-x', bar=None)
        self.assertTypeError('-y', callback='foo')
        self.assertTypeError('-y', callback_args=())
        self.assertTypeError('-y', callback_kwargs={})

    def test_missing_destination(self):
        self.assertTypeError()
        for action in ['append', 'store']:
            self.assertTypeError(action=action)

    def test_invalid_option_strings(self):
        self.assertValueError('--')
        self.assertValueError('---')

    def test_invalid_type(self):
        self.assertValueError('--foo', type='int')
        self.assertValueError('--foo', type=(int, float))

    def test_invalid_action(self):
        self.assertValueError('-x', action='foo')
        self.assertValueError('foo', action='baz')
        self.assertValueError('--foo', action=('store', 'append'))
        parser = argparse.ArgumentParser()
        try:
            parser.add_argument("--foo", action="store-true")
        except ValueError:
            e = sys.exc_info()[1]
            expected = 'unknown action'
            msg = 'expected %r, found %r' % (expected, e)
            self.assertTrue(expected in str(e), msg)

    def test_multiple_dest(self):
        parser = argparse.ArgumentParser()
        parser.add_argument(dest='foo')
        try:
            parser.add_argument('bar', dest='baz')
        except ValueError:
            e = sys.exc_info()[1]
            expected = 'dest supplied twice for positional argument'
            msg = 'expected %r, found %r' % (expected, e)
            self.assertTrue(expected in str(e), msg)

    def test_no_argument_actions(self):
        for action in ['store_const', 'store_true', 'store_false',
                       'append_const', 'count']:
            for attrs in [dict(type=int), dict(nargs='+'),
                          dict(choices='ab')]:
                self.assertTypeError('-x', action=action, **attrs)

    def test_no_argument_no_const_actions(self):
        # options with zero arguments
        for action in ['store_true', 'store_false', 'count']:

            # const is always disallowed
            self.assertTypeError('-x', const='foo', action=action)

            # nargs is always disallowed
            self.assertTypeError('-x', nargs='*', action=action)

    def test_more_than_one_argument_actions(self):
        for action in ['store', 'append']:

            # nargs=0 is disallowed
            self.assertValueError('-x', nargs=0, action=action)
            self.assertValueError('spam', nargs=0, action=action)

            # const is disallowed with non-optional arguments
            for nargs in [1, '*', '+']:
                self.assertValueError('-x', const='foo',
                                      nargs=nargs, action=action)
                self.assertValueError('spam', const='foo',
                                      nargs=nargs, action=action)

    def test_required_const_actions(self):
        for action in ['store_const', 'append_const']:

            # nargs is always disallowed
            self.assertTypeError('-x', nargs='+', action=action)

    def test_parsers_action_missing_params(self):
        self.assertTypeError('command', action='parsers')
        self.assertTypeError('command', action='parsers', prog='PROG')
        self.assertTypeError('command', action='parsers',
                             parser_class=argparse.ArgumentParser)

    def test_required_positional(self):
        self.assertTypeError('foo', required=True)

    def test_user_defined_action(self):

        class Success(Exception):
            pass

        class Action(object):

            def __init__(self,
                         option_strings,
                         dest,
                         const,
                         default,
                         required=False):
                if dest == 'spam':
                    if const is Success:
                        if default is Success:
                            raise Success()

            def __call__(self, *args, **kwargs):
                pass

        parser = argparse.ArgumentParser()
        self.assertRaises(Success, parser.add_argument, '--spam',
                          action=Action, default=Success, const=Success)
        self.assertRaises(Success, parser.add_argument, 'spam',
                          action=Action, default=Success, const=Success)

# ================================
# Actions returned by add_argument
# ================================

class TestActionsReturned(TestCase):

    def test_dest(self):
        parser = argparse.ArgumentParser()
        action = parser.add_argument('--foo')
        self.assertEqual(action.dest, 'foo')
        action = parser.add_argument('-b', '--bar')
        self.assertEqual(action.dest, 'bar')
        action = parser.add_argument('-x', '-y')
        self.assertEqual(action.dest, 'x')

    def test_misc(self):
        parser = argparse.ArgumentParser()
        action = parser.add_argument('--foo', nargs='?', const=42,
                                     default=84, type=int, choices=[1, 2],
                                     help='FOO', metavar='BAR', dest='baz')
        self.assertEqual(action.nargs, '?')
        self.assertEqual(action.const, 42)
        self.assertEqual(action.default, 84)
        self.assertEqual(action.type, int)
        self.assertEqual(action.choices, [1, 2])
        self.assertEqual(action.help, 'FOO')
        self.assertEqual(action.metavar, 'BAR')
        self.assertEqual(action.dest, 'baz')


# ================================
# Argument conflict handling tests
# ================================

class TestConflictHandling(TestCase):

    def test_bad_type(self):
        self.assertRaises(ValueError, argparse.ArgumentParser,
                          conflict_handler='foo')

    def test_conflict_error(self):
        parser = argparse.ArgumentParser()
        parser.add_argument('-x')
        self.assertRaises(argparse.ArgumentError,
                          parser.add_argument, '-x')
        parser.add_argument('--spam')
        self.assertRaises(argparse.ArgumentError,
                          parser.add_argument, '--spam')

    def test_resolve_error(self):
        get_parser = argparse.ArgumentParser
        parser = get_parser(prog='PROG', conflict_handler='resolve')

        parser.add_argument('-x', help='OLD X')
        parser.add_argument('-x', help='NEW X')
        self.assertEqual(parser.format_help(), textwrap.dedent('''\
            usage: PROG [-h] [-x X]

            optional arguments:
              -h, --help  show this help message and exit
              -x X        NEW X
            '''))

        parser.add_argument('--spam', metavar='OLD_SPAM')
        parser.add_argument('--spam', metavar='NEW_SPAM')
        self.assertEqual(parser.format_help(), textwrap.dedent('''\
            usage: PROG [-h] [-x X] [--spam NEW_SPAM]

            optional arguments:
              -h, --help       show this help message and exit
              -x X             NEW X
              --spam NEW_SPAM
            '''))


# =============================
# Help and Version option tests
# =============================

class TestOptionalsHelpVersionActions(TestCase):
    """Test the help and version actions"""

    def _get_error(self, func, *args, **kwargs):
        try:
            func(*args, **kwargs)
        except ArgumentParserError:
            return sys.exc_info()[1]
        else:
            self.assertRaises(ArgumentParserError, func, *args, **kwargs)

    def assertPrintHelpExit(self, parser, args_str):
        self.assertEqual(
            parser.format_help(),
            self._get_error(parser.parse_args, args_str.split()).stdout)

    def assertPrintVersionExit(self, parser, args_str):
        self.assertEqual(
            parser.format_version(),
            self._get_error(parser.parse_args, args_str.split()).stderr)

    def assertArgumentParserError(self, parser, *args):
        self.assertRaises(ArgumentParserError, parser.parse_args, args)

    def test_version(self):
        parser = ErrorRaisingArgumentParser(version='1.0')
        self.assertPrintHelpExit(parser, '-h')
        self.assertPrintHelpExit(parser, '--help')
        self.assertPrintVersionExit(parser, '-v')
        self.assertPrintVersionExit(parser, '--version')

    def test_version_format(self):
        parser = ErrorRaisingArgumentParser(prog='PPP', version='%(prog)s 3.5')
        msg = self._get_error(parser.parse_args, ['-v']).stderr
        self.assertEqual('PPP 3.5\n', msg)

    def test_version_no_help(self):
        parser = ErrorRaisingArgumentParser(add_help=False, version='1.0')
        self.assertArgumentParserError(parser, '-h')
        self.assertArgumentParserError(parser, '--help')
        self.assertPrintVersionExit(parser, '-v')
        self.assertPrintVersionExit(parser, '--version')

    def test_version_action(self):
        parser = ErrorRaisingArgumentParser(prog='XXX')
        parser.add_argument('-V', action='version', version='%(prog)s 3.7')
        msg = self._get_error(parser.parse_args, ['-V']).stderr
        self.assertEqual('XXX 3.7\n', msg)

    def test_no_help(self):
        parser = ErrorRaisingArgumentParser(add_help=False)
        self.assertArgumentParserError(parser, '-h')
        self.assertArgumentParserError(parser, '--help')
        self.assertArgumentParserError(parser, '-v')
        self.assertArgumentParserError(parser, '--version')

    def test_alternate_help_version(self):
        parser = ErrorRaisingArgumentParser()
        parser.add_argument('-x', action='help')
        parser.add_argument('-y', action='version')
        self.assertPrintHelpExit(parser, '-x')
        self.assertPrintVersionExit(parser, '-y')
        self.assertArgumentParserError(parser, '-v')
        self.assertArgumentParserError(parser, '--version')

    def test_help_version_extra_arguments(self):
        parser = ErrorRaisingArgumentParser(version='1.0')
        parser.add_argument('-x', action='store_true')
        parser.add_argument('y')

        # try all combinations of valid prefixes and suffixes
        valid_prefixes = ['', '-x', 'foo', '-x bar', 'baz -x']
        valid_suffixes = valid_prefixes + ['--bad-option', 'foo bar baz']
        for prefix in valid_prefixes:
            for suffix in valid_suffixes:
                format = '%s %%s %s' % (prefix, suffix)
            self.assertPrintHelpExit(parser, format % '-h')
            self.assertPrintHelpExit(parser, format % '--help')
            self.assertPrintVersionExit(parser, format % '-v')
            self.assertPrintVersionExit(parser, format % '--version')


# ======================
# str() and repr() tests
# ======================

class TestStrings(TestCase):
    """Test str()  and repr() on Optionals and Positionals"""

    def assertStringEqual(self, obj, result_string):
        for func in [str, repr]:
            self.assertEqual(func(obj), result_string)

    def test_optional(self):
        option = argparse.Action(
            option_strings=['--foo', '-a', '-b'],
            dest='b',
            type='int',
            nargs='+',
            default=42,
            choices=[1, 2, 3],
            help='HELP',
            metavar='METAVAR')
        string = (
            "Action(option_strings=['--foo', '-a', '-b'], dest='b', "
            "nargs='+', const=None, default=42, type='int', "
            "choices=[1, 2, 3], help='HELP', metavar='METAVAR')")
        self.assertStringEqual(option, string)

    def test_argument(self):
        argument = argparse.Action(
            option_strings=[],
            dest='x',
            type=float,
            nargs='?',
            default=2.5,
            choices=[0.5, 1.5, 2.5],
            help='H HH H',
            metavar='MV MV MV')
        string = (
            "Action(option_strings=[], dest='x', nargs='?', "
            "const=None, default=2.5, type=%r, choices=[0.5, 1.5, 2.5], "
            "help='H HH H', metavar='MV MV MV')" % float)
        self.assertStringEqual(argument, string)

    def test_namespace(self):
        ns = argparse.Namespace(foo=42, bar='spam')
        string = "Namespace(bar='spam', foo=42)"
        self.assertStringEqual(ns, string)

    def test_parser(self):
        parser = argparse.ArgumentParser(prog='PROG')
        string = (
            "ArgumentParser(prog='PROG', usage=None, description=None, "
            "version=None, formatter_class=%r, conflict_handler='error', "
            "add_help=True)" % argparse.HelpFormatter)
        self.assertStringEqual(parser, string)

# ===============
# Namespace tests
# ===============

class TestNamespace(TestCase):

    def test_constructor(self):
        ns = argparse.Namespace()
        self.assertRaises(AttributeError, getattr, ns, 'x')

        ns = argparse.Namespace(a=42, b='spam')
        self.assertEqual(ns.a, 42)
        self.assertEqual(ns.b, 'spam')

    def test_equality(self):
        ns1 = argparse.Namespace(a=1, b=2)
        ns2 = argparse.Namespace(b=2, a=1)
        ns3 = argparse.Namespace(a=1)
        ns4 = argparse.Namespace(b=2)

        self.assertEqual(ns1, ns2)
        self.assertNotEqual(ns1, ns3)
        self.assertNotEqual(ns1, ns4)
        self.assertNotEqual(ns2, ns3)
        self.assertNotEqual(ns2, ns4)
        self.assertTrue(ns1 != ns3)
        self.assertTrue(ns1 != ns4)
        self.assertTrue(ns2 != ns3)
        self.assertTrue(ns2 != ns4)

    def test_equality_returns_notimplemeted(self):
        # See issue 21481
        ns = argparse.Namespace(a=1, b=2)
        self.assertIs(ns.__eq__(None), NotImplemented)
        self.assertIs(ns.__ne__(None), NotImplemented)


# ===================
# File encoding tests
# ===================

class TestEncoding(TestCase):

    def _test_module_encoding(self, path):
        path, _ = os.path.splitext(path)
        path += ".py"
        with codecs.open(path, 'r', 'utf8') as f:
            f.read()

    def test_argparse_module_encoding(self):
        self._test_module_encoding(argparse.__file__)

    def test_test_argparse_module_encoding(self):
        self._test_module_encoding(__file__)

# ===================
# ArgumentError tests
# ===================

class TestArgumentError(TestCase):

    def test_argument_error(self):
        msg = "my error here"
        error = argparse.ArgumentError(None, msg)
        self.assertEqual(str(error), msg)

# =======================
# ArgumentTypeError tests
# =======================

class TestArgumentTypeError(TestCase):

    def test_argument_type_error(self):

        def spam(string):
            raise argparse.ArgumentTypeError('spam!')

        parser = ErrorRaisingArgumentParser(prog='PROG', add_help=False)
        parser.add_argument('x', type=spam)
        try:
            parser.parse_args(['XXX'])
        except ArgumentParserError:
            expected = 'usage: PROG x\nPROG: error: argument x: spam!\n'
            msg = sys.exc_info()[1].stderr
            self.assertEqual(expected, msg)
        else:
            self.fail()

# ================================================
# Check that the type function is called only once
# ================================================

class TestTypeFunctionCallOnlyOnce(TestCase):

    def test_type_function_call_only_once(self):
        def spam(string_to_convert):
            self.assertEqual(string_to_convert, 'spam!')
            return 'foo_converted'

        parser = argparse.ArgumentParser()
        parser.add_argument('--foo', type=spam, default='bar')
        args = parser.parse_args('--foo spam!'.split())
        self.assertEqual(NS(foo='foo_converted'), args)

# ==================================================================
# Check semantics regarding the default argument and type conversion
# ==================================================================

class TestTypeFunctionCalledOnDefault(TestCase):

    def test_type_function_call_with_non_string_default(self):
        def spam(int_to_convert):
            self.assertEqual(int_to_convert, 0)
            return 'foo_converted'

        parser = argparse.ArgumentParser()
        parser.add_argument('--foo', type=spam, default=0)
        args = parser.parse_args([])
        # foo should *not* be converted because its default is not a string.
        self.assertEqual(NS(foo=0), args)

    def test_type_function_call_with_string_default(self):
        def spam(int_to_convert):
            return 'foo_converted'

        parser = argparse.ArgumentParser()
        parser.add_argument('--foo', type=spam, default='0')
        args = parser.parse_args([])
        # foo is converted because its default is a string.
        self.assertEqual(NS(foo='foo_converted'), args)

    def test_no_double_type_conversion_of_default(self):
        def extend(str_to_convert):
            return str_to_convert + '*'

        parser = argparse.ArgumentParser()
        parser.add_argument('--test', type=extend, default='*')
        args = parser.parse_args([])
        # The test argument will be two stars, one coming from the default
        # value and one coming from the type conversion being called exactly
        # once.
        self.assertEqual(NS(test='**'), args)

    def test_issue_15906(self):
        # Issue #15906: When action='append', type=str, default=[] are
        # providing, the dest value was the string representation "[]" when it
        # should have been an empty list.
        parser = argparse.ArgumentParser()
        parser.add_argument('--test', dest='test', type=str,
                            default=[], action='append')
        args = parser.parse_args([])
        self.assertEqual(args.test, [])

# ======================
# parse_known_args tests
# ======================

class TestParseKnownArgs(TestCase):

    def test_arguments_tuple(self):
        parser = argparse.ArgumentParser()
        parser.parse_args(())

    def test_arguments_list(self):
        parser = argparse.ArgumentParser()
        parser.parse_args([])

    def test_arguments_tuple_positional(self):
        parser = argparse.ArgumentParser()
        parser.add_argument('x')
        parser.parse_args(('x',))

    def test_arguments_list_positional(self):
        parser = argparse.ArgumentParser()
        parser.add_argument('x')
        parser.parse_args(['x'])

    def test_optionals(self):
        parser = argparse.ArgumentParser()
        parser.add_argument('--foo')
        args, extras = parser.parse_known_args('--foo F --bar --baz'.split())
        self.assertEqual(NS(foo='F'), args)
        self.assertEqual(['--bar', '--baz'], extras)

    def test_mixed(self):
        parser = argparse.ArgumentParser()
        parser.add_argument('-v', nargs='?', const=1, type=int)
        parser.add_argument('--spam', action='store_false')
        parser.add_argument('badger')

        argv = ["B", "C", "--foo", "-v", "3", "4"]
        args, extras = parser.parse_known_args(argv)
        self.assertEqual(NS(v=3, spam=True, badger="B"), args)
        self.assertEqual(["C", "--foo", "4"], extras)

# ==========================
# add_argument metavar tests
# ==========================

class TestAddArgumentMetavar(TestCase):

    EXPECTED_MESSAGE = "length of metavar tuple does not match nargs"

    def do_test_no_exception(self, nargs, metavar):
        parser = argparse.ArgumentParser()
        parser.add_argument("--foo", nargs=nargs, metavar=metavar)

    def do_test_exception(self, nargs, metavar):
        parser = argparse.ArgumentParser()
        with self.assertRaises(ValueError) as cm:
            parser.add_argument("--foo", nargs=nargs, metavar=metavar)
        self.assertEqual(cm.exception.args[0], self.EXPECTED_MESSAGE)

    # Unit tests for different values of metavar when nargs=None

    def test_nargs_None_metavar_string(self):
        self.do_test_no_exception(nargs=None, metavar="1")

    def test_nargs_None_metavar_length0(self):
        self.do_test_exception(nargs=None, metavar=tuple())

    def test_nargs_None_metavar_length1(self):
        self.do_test_no_exception(nargs=None, metavar=("1",))

    def test_nargs_None_metavar_length2(self):
        self.do_test_exception(nargs=None, metavar=("1", "2"))

    def test_nargs_None_metavar_length3(self):
        self.do_test_exception(nargs=None, metavar=("1", "2", "3"))

    # Unit tests for different values of metavar when nargs=?

    def test_nargs_optional_metavar_string(self):
        self.do_test_no_exception(nargs="?", metavar="1")

    def test_nargs_optional_metavar_length0(self):
        self.do_test_exception(nargs="?", metavar=tuple())

    def test_nargs_optional_metavar_length1(self):
        self.do_test_no_exception(nargs="?", metavar=("1",))

    def test_nargs_optional_metavar_length2(self):
        self.do_test_exception(nargs="?", metavar=("1", "2"))

    def test_nargs_optional_metavar_length3(self):
        self.do_test_exception(nargs="?", metavar=("1", "2", "3"))

    # Unit tests for different values of metavar when nargs=*

    def test_nargs_zeroormore_metavar_string(self):
        self.do_test_no_exception(nargs="*", metavar="1")

    def test_nargs_zeroormore_metavar_length0(self):
        self.do_test_exception(nargs="*", metavar=tuple())

    def test_nargs_zeroormore_metavar_length1(self):
        self.do_test_exception(nargs="*", metavar=("1",))

    def test_nargs_zeroormore_metavar_length2(self):
        self.do_test_no_exception(nargs="*", metavar=("1", "2"))

    def test_nargs_zeroormore_metavar_length3(self):
        self.do_test_exception(nargs="*", metavar=("1", "2", "3"))

    # Unit tests for different values of metavar when nargs=+

    def test_nargs_oneormore_metavar_string(self):
        self.do_test_no_exception(nargs="+", metavar="1")

    def test_nargs_oneormore_metavar_length0(self):
        self.do_test_exception(nargs="+", metavar=tuple())

    def test_nargs_oneormore_metavar_length1(self):
        self.do_test_exception(nargs="+", metavar=("1",))

    def test_nargs_oneormore_metavar_length2(self):
        self.do_test_no_exception(nargs="+", metavar=("1", "2"))

    def test_nargs_oneormore_metavar_length3(self):
        self.do_test_exception(nargs="+", metavar=("1", "2", "3"))

    # Unit tests for different values of metavar when nargs=...

    def test_nargs_remainder_metavar_string(self):
        self.do_test_no_exception(nargs="...", metavar="1")

    def test_nargs_remainder_metavar_length0(self):
        self.do_test_no_exception(nargs="...", metavar=tuple())

    def test_nargs_remainder_metavar_length1(self):
        self.do_test_no_exception(nargs="...", metavar=("1",))

    def test_nargs_remainder_metavar_length2(self):
        self.do_test_no_exception(nargs="...", metavar=("1", "2"))

    def test_nargs_remainder_metavar_length3(self):
        self.do_test_no_exception(nargs="...", metavar=("1", "2", "3"))

    # Unit tests for different values of metavar when nargs=A...

    def test_nargs_parser_metavar_string(self):
        self.do_test_no_exception(nargs="A...", metavar="1")

    def test_nargs_parser_metavar_length0(self):
        self.do_test_exception(nargs="A...", metavar=tuple())

    def test_nargs_parser_metavar_length1(self):
        self.do_test_no_exception(nargs="A...", metavar=("1",))

    def test_nargs_parser_metavar_length2(self):
        self.do_test_exception(nargs="A...", metavar=("1", "2"))

    def test_nargs_parser_metavar_length3(self):
        self.do_test_exception(nargs="A...", metavar=("1", "2", "3"))

    # Unit tests for different values of metavar when nargs=1

    def test_nargs_1_metavar_string(self):
        self.do_test_no_exception(nargs=1, metavar="1")

    def test_nargs_1_metavar_length0(self):
        self.do_test_exception(nargs=1, metavar=tuple())

    def test_nargs_1_metavar_length1(self):
        self.do_test_no_exception(nargs=1, metavar=("1",))

    def test_nargs_1_metavar_length2(self):
        self.do_test_exception(nargs=1, metavar=("1", "2"))

    def test_nargs_1_metavar_length3(self):
        self.do_test_exception(nargs=1, metavar=("1", "2", "3"))

    # Unit tests for different values of metavar when nargs=2

    def test_nargs_2_metavar_string(self):
        self.do_test_no_exception(nargs=2, metavar="1")

    def test_nargs_2_metavar_length0(self):
        self.do_test_exception(nargs=2, metavar=tuple())

    def test_nargs_2_metavar_length1(self):
        self.do_test_exception(nargs=2, metavar=("1",))

    def test_nargs_2_metavar_length2(self):
        self.do_test_no_exception(nargs=2, metavar=("1", "2"))

    def test_nargs_2_metavar_length3(self):
        self.do_test_exception(nargs=2, metavar=("1", "2", "3"))

    # Unit tests for different values of metavar when nargs=3

    def test_nargs_3_metavar_string(self):
        self.do_test_no_exception(nargs=3, metavar="1")

    def test_nargs_3_metavar_length0(self):
        self.do_test_exception(nargs=3, metavar=tuple())

    def test_nargs_3_metavar_length1(self):
        self.do_test_exception(nargs=3, metavar=("1",))

    def test_nargs_3_metavar_length2(self):
        self.do_test_exception(nargs=3, metavar=("1", "2"))

    def test_nargs_3_metavar_length3(self):
        self.do_test_no_exception(nargs=3, metavar=("1", "2", "3"))

# ============================
# from argparse import * tests
# ============================

class TestImportStar(TestCase):

    def test(self):
        for name in argparse.__all__:
            self.assertTrue(hasattr(argparse, name))

    def test_all_exports_everything_but_modules(self):
        items = [
            name
            for name, value in vars(argparse).items()
            if not name.startswith("_")
            if not inspect.ismodule(value)
        ]
        self.assertEqual(sorted(items), sorted(argparse.__all__))


class TestWrappingMetavar(TestCase):

    def setUp(self):
        self.parser = ErrorRaisingArgumentParser(
            'this_is_spammy_prog_with_a_long_name_sorry_about_the_name'
        )
        # this metavar was triggering library assertion errors due to usage
        # message formatting incorrectly splitting on the ] chars within
        metavar = '<http[s]://example:1234>'
        self.parser.add_argument('--proxy', metavar=metavar)

    def test_help_with_metavar(self):
        help_text = self.parser.format_help()
        self.assertEqual(help_text, textwrap.dedent('''\
            usage: this_is_spammy_prog_with_a_long_name_sorry_about_the_name
                   [-h] [--proxy <http[s]://example:1234>]

            optional arguments:
              -h, --help            show this help message and exit
              --proxy <http[s]://example:1234>
            '''))


def test_main():
    # silence warnings about version argument - these are expected
    with test_support.check_warnings(
            ('The "version" argument to ArgumentParser is deprecated.',
             DeprecationWarning),
            ('The (format|print)_version method is deprecated',
             DeprecationWarning)):
        test_support.run_unittest(__name__)
    # Remove global references to avoid looking like we have refleaks.
    RFile.seen = {}
    WFile.seen = set()



if __name__ == '__main__':
    test_main()

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
25 Jul 2024 8.42 AM
root / root
0755
audiodata
--
25 Jul 2024 8.42 AM
root / root
0755
capath
--
25 Jul 2024 8.42 AM
root / root
0755
cjkencodings
--
25 Jul 2024 8.42 AM
root / root
0755
data
--
25 Jul 2024 8.42 AM
root / root
0755
decimaltestdata
--
25 Jul 2024 8.42 AM
root / root
0755
imghdrdata
--
25 Jul 2024 8.42 AM
root / root
0755
subprocessdata
--
25 Jul 2024 8.42 AM
root / root
0755
support
--
25 Jul 2024 8.13 AM
root / root
0755
tracedmodules
--
25 Jul 2024 8.42 AM
root / root
0755
xmltestdata
--
25 Jul 2024 8.42 AM
root / root
0755
185test.db
16 KB
10 Apr 2024 4.58 AM
root / root
0644
Sine-1000Hz-300ms.aif
60.25 KB
10 Apr 2024 4.58 AM
root / root
0644
__init__.py
0.046 KB
10 Apr 2024 4.58 AM
root / root
0644
__init__.pyc
0.121 KB
10 Apr 2024 4.58 AM
root / root
0644
__init__.pyo
0.121 KB
10 Apr 2024 4.58 AM
root / root
0644
__main__.py
0.054 KB
10 Apr 2024 4.58 AM
root / root
0644
__main__.pyc
0.205 KB
10 Apr 2024 4.58 AM
root / root
0644
__main__.pyo
0.205 KB
10 Apr 2024 4.58 AM
root / root
0644
_mock_backport.py
75.013 KB
10 Apr 2024 4.58 AM
root / root
0644
_mock_backport.pyc
69.023 KB
10 Apr 2024 4.58 AM
root / root
0644
_mock_backport.pyo
69.023 KB
10 Apr 2024 4.58 AM
root / root
0644
allsans.pem
4.919 KB
10 Apr 2024 4.58 AM
root / root
0644
audiotest.au
27.484 KB
10 Apr 2024 4.58 AM
root / root
0644
audiotests.py
9.52 KB
10 Apr 2024 4.58 AM
root / root
0644
audiotests.pyc
10.996 KB
10 Apr 2024 4.58 AM
root / root
0644
audiotests.pyo
10.996 KB
10 Apr 2024 4.58 AM
root / root
0644
autotest.py
0.206 KB
10 Apr 2024 4.58 AM
root / root
0644
autotest.pyc
0.193 KB
10 Apr 2024 4.58 AM
root / root
0644
autotest.pyo
0.193 KB
10 Apr 2024 4.58 AM
root / root
0644
bad_coding.py
0.023 KB
10 Apr 2024 4.58 AM
root / root
0644
bad_coding2.py
0.028 KB
10 Apr 2024 4.58 AM
root / root
0644
bad_coding3.py
0.063 KB
10 Apr 2024 4.58 AM
root / root
0644
badcert.pem
1.883 KB
10 Apr 2024 4.58 AM
root / root
0644
badkey.pem
2.111 KB
10 Apr 2024 4.58 AM
root / root
0644
badsyntax_future3.py
0.168 KB
10 Apr 2024 4.58 AM
root / root
0644
badsyntax_future4.py
0.149 KB
10 Apr 2024 4.58 AM
root / root
0644
badsyntax_future5.py
0.18 KB
10 Apr 2024 4.58 AM
root / root
0644
badsyntax_future6.py
0.157 KB
10 Apr 2024 4.58 AM
root / root
0644
badsyntax_future7.py
0.191 KB
10 Apr 2024 4.58 AM
root / root
0644
badsyntax_future8.py
0.118 KB
10 Apr 2024 4.58 AM
root / root
0644
badsyntax_future9.py
0.138 KB
10 Apr 2024 4.58 AM
root / root
0644
badsyntax_nocaret.py
0.032 KB
10 Apr 2024 4.58 AM
root / root
0644
bisect_cmd.py
5.119 KB
10 Apr 2024 4.58 AM
root / root
0755
bisect_cmd.pyc
5.424 KB
10 Apr 2024 4.58 AM
root / root
0644
bisect_cmd.pyo
5.424 KB
10 Apr 2024 4.58 AM
root / root
0644
cfgparser.1
0.021 KB
10 Apr 2024 4.58 AM
root / root
0644
cmath_testcases.txt
133.635 KB
10 Apr 2024 4.58 AM
root / root
0644
curses_tests.py
1.212 KB
10 Apr 2024 4.58 AM
root / root
0755
curses_tests.pyc
1.445 KB
10 Apr 2024 4.58 AM
root / root
0644
curses_tests.pyo
1.445 KB
10 Apr 2024 4.58 AM
root / root
0644
doctest_aliases.py
0.233 KB
10 Apr 2024 4.58 AM
root / root
0644
doctest_aliases.pyc
0.593 KB
10 Apr 2024 4.58 AM
root / root
0644
doctest_aliases.pyo
0.593 KB
10 Apr 2024 4.58 AM
root / root
0644
double_const.py
1.188 KB
10 Apr 2024 4.58 AM
root / root
0644
double_const.pyc
0.737 KB
10 Apr 2024 4.58 AM
root / root
0644
double_const.pyo
0.671 KB
10 Apr 2024 4.58 AM
root / root
0644
empty.vbs
0.068 KB
10 Apr 2024 4.58 AM
root / root
0644
exception_hierarchy.txt
1.449 KB
10 Apr 2024 4.58 AM
root / root
0644
ffdh3072.pem
2.16 KB
10 Apr 2024 4.58 AM
root / root
0644
floating_points.txt
15.92 KB
10 Apr 2024 4.58 AM
root / root
0644
fork_wait.py
2.508 KB
10 Apr 2024 4.58 AM
root / root
0644
fork_wait.pyc
3.11 KB
10 Apr 2024 4.58 AM
root / root
0644
fork_wait.pyo
3.11 KB
10 Apr 2024 4.58 AM
root / root
0644
formatfloat_testcases.txt
7.832 KB
10 Apr 2024 4.58 AM
root / root
0644
gdb_sample.py
0.152 KB
10 Apr 2024 4.58 AM
root / root
0644
gdb_sample.pyc
0.629 KB
10 Apr 2024 4.58 AM
root / root
0644
gdb_sample.pyo
0.629 KB
10 Apr 2024 4.58 AM
root / root
0644
greyrgb.uue
93.497 KB
10 Apr 2024 4.58 AM
root / root
0644
ieee754.txt
3.206 KB
10 Apr 2024 4.58 AM
root / root
0644
infinite_reload.py
0.316 KB
10 Apr 2024 4.58 AM
root / root
0644
infinite_reload.pyc
0.211 KB
10 Apr 2024 4.58 AM
root / root
0644
infinite_reload.pyo
0.211 KB
10 Apr 2024 4.58 AM
root / root
0644
inspect_fodder.py
0.944 KB
10 Apr 2024 4.58 AM
root / root
0644
inspect_fodder.pyc
2.139 KB
10 Apr 2024 4.58 AM
root / root
0644
inspect_fodder.pyo
2.139 KB
10 Apr 2024 4.58 AM
root / root
0644
inspect_fodder2.py
1.249 KB
10 Apr 2024 4.58 AM
root / root
0644
inspect_fodder2.pyc
4.409 KB
10 Apr 2024 4.58 AM
root / root
0644
inspect_fodder2.pyo
4.409 KB
10 Apr 2024 4.58 AM
root / root
0644
keycert.passwd.pem
4.005 KB
10 Apr 2024 4.58 AM
root / root
0644
keycert.pem
3.963 KB
10 Apr 2024 4.58 AM
root / root
0644
keycert2.pem
3.971 KB
10 Apr 2024 4.58 AM
root / root
0644
keycert3.pem
9.219 KB
10 Apr 2024 4.58 AM
root / root
0644
keycert4.pem
9.232 KB
10 Apr 2024 4.58 AM
root / root
0644
list_tests.py
16.566 KB
10 Apr 2024 4.58 AM
root / root
0644
list_tests.pyc
18.363 KB
10 Apr 2024 4.58 AM
root / root
0644
list_tests.pyo
18.363 KB
10 Apr 2024 4.58 AM
root / root
0644
lock_tests.py
16.427 KB
10 Apr 2024 4.58 AM
root / root
0644
lock_tests.pyc
19.412 KB
10 Apr 2024 4.58 AM
root / root
0644
lock_tests.pyo
19.412 KB
10 Apr 2024 4.58 AM
root / root
0644
mailcap.txt
1.24 KB
10 Apr 2024 4.58 AM
root / root
0644
make_ssl_certs.py
6.693 KB
10 Apr 2024 4.58 AM
root / root
0644
make_ssl_certs.pyc
6.651 KB
10 Apr 2024 4.58 AM
root / root
0644
make_ssl_certs.pyo
6.651 KB
10 Apr 2024 4.58 AM
root / root
0644
mapping_tests.py
22.566 KB
10 Apr 2024 4.58 AM
root / root
0644
mapping_tests.pyc
29.425 KB
10 Apr 2024 4.58 AM
root / root
0644
mapping_tests.pyo
29.425 KB
10 Apr 2024 4.58 AM
root / root
0644
math_testcases.txt
15.52 KB
10 Apr 2024 4.58 AM
root / root
0644
mp_fork_bomb.py
0.378 KB
10 Apr 2024 4.58 AM
root / root
0644
mp_fork_bomb.pyc
0.544 KB
10 Apr 2024 4.58 AM
root / root
0644
mp_fork_bomb.pyo
0.544 KB
10 Apr 2024 4.58 AM
root / root
0644
multibytecodec_support.py
13.81 KB
10 Apr 2024 4.58 AM
root / root
0644
multibytecodec_support.pyc
14.898 KB
10 Apr 2024 4.58 AM
root / root
0644
multibytecodec_support.pyo
14.898 KB
10 Apr 2024 4.58 AM
root / root
0644
nokia.pem
1.878 KB
10 Apr 2024 4.58 AM
root / root
0644
nullbytecert.pem
5.308 KB
10 Apr 2024 4.58 AM
root / root
0644
nullcert.pem
0 KB
10 Apr 2024 4.58 AM
root / root
0644
outstanding_bugs.py
0.421 KB
10 Apr 2024 4.58 AM
root / root
0644
outstanding_bugs.pyc
0.401 KB
10 Apr 2024 4.58 AM
root / root
0644
outstanding_bugs.pyo
0.401 KB
10 Apr 2024 4.58 AM
root / root
0644
pickletester.py
63.149 KB
10 Apr 2024 4.58 AM
root / root
0644
pickletester.pyc
65.946 KB
10 Apr 2024 4.58 AM
root / root
0644
pickletester.pyo
65.798 KB
10 Apr 2024 4.58 AM
root / root
0644
profilee.py
2.97 KB
10 Apr 2024 4.58 AM
root / root
0644
profilee.pyc
2.951 KB
10 Apr 2024 4.58 AM
root / root
0644
profilee.pyo
2.951 KB
10 Apr 2024 4.58 AM
root / root
0644
pycacert.pem
5.523 KB
10 Apr 2024 4.58 AM
root / root
0644
pyclbr_input.py
0.633 KB
10 Apr 2024 4.58 AM
root / root
0644
pyclbr_input.pyc
1.717 KB
10 Apr 2024 4.58 AM
root / root
0644
pyclbr_input.pyo
1.717 KB
10 Apr 2024 4.58 AM
root / root
0644
pydoc_mod.py
0.67 KB
10 Apr 2024 4.58 AM
root / root
0644
pydoc_mod.pyc
1.868 KB
10 Apr 2024 4.58 AM
root / root
0644
pydoc_mod.pyo
1.868 KB
10 Apr 2024 4.58 AM
root / root
0644
pydocfodder.py
6.181 KB
10 Apr 2024 4.58 AM
root / root
0644
pydocfodder.pyc
15.687 KB
10 Apr 2024 4.58 AM
root / root
0644
pydocfodder.pyo
15.687 KB
10 Apr 2024 4.58 AM
root / root
0644
pystone.py
7.193 KB
10 Apr 2024 4.58 AM
root / root
0755
pystone.pyc
7.841 KB
10 Apr 2024 4.58 AM
root / root
0644
pystone.pyo
7.841 KB
10 Apr 2024 4.58 AM
root / root
0644
pythoninfo.py
19.725 KB
10 Apr 2024 4.58 AM
root / root
0644
pythoninfo.pyc
20.934 KB
10 Apr 2024 4.58 AM
root / root
0644
pythoninfo.pyo
20.934 KB
10 Apr 2024 4.58 AM
root / root
0644
randv2_32.pck
7.341 KB
10 Apr 2024 4.58 AM
root / root
0644
randv2_64.pck
7.192 KB
10 Apr 2024 4.58 AM
root / root
0644
randv3.pck
7.816 KB
10 Apr 2024 4.58 AM
root / root
0644
re_tests.py
31.123 KB
10 Apr 2024 4.58 AM
root / root
0755
re_tests.pyc
18.232 KB
10 Apr 2024 4.58 AM
root / root
0644
re_tests.pyo
18.232 KB
10 Apr 2024 4.58 AM
root / root
0644
recursion.tar
0.504 KB
10 Apr 2024 4.58 AM
root / root
0644
regrtest.py
69.906 KB
10 Apr 2024 4.58 AM
root / root
0755
regrtest.pyc
58.123 KB
10 Apr 2024 4.58 AM
root / root
0644
regrtest.pyo
57.999 KB
10 Apr 2024 4.58 AM
root / root
0644
relimport.py
0.026 KB
10 Apr 2024 4.58 AM
root / root
0644
relimport.pyc
0.163 KB
10 Apr 2024 4.58 AM
root / root
0644
relimport.pyo
0.163 KB
10 Apr 2024 4.58 AM
root / root
0644
reperf.py
0.502 KB
10 Apr 2024 4.58 AM
root / root
0644
reperf.pyc
0.901 KB
10 Apr 2024 4.58 AM
root / root
0644
reperf.pyo
0.901 KB
10 Apr 2024 4.58 AM
root / root
0644
revocation.crl
0.781 KB
10 Apr 2024 4.58 AM
root / root
0644
sample_doctest.py
1.013 KB
10 Apr 2024 4.58 AM
root / root
0644
sample_doctest.pyc
1.963 KB
10 Apr 2024 4.58 AM
root / root
0644
sample_doctest.pyo
1.963 KB
10 Apr 2024 4.58 AM
root / root
0644
sample_doctest_no_docstrings.py
0.222 KB
10 Apr 2024 4.58 AM
root / root
0644
sample_doctest_no_docstrings.pyc
0.5 KB
10 Apr 2024 4.58 AM
root / root
0644
sample_doctest_no_docstrings.pyo
0.5 KB
10 Apr 2024 4.58 AM
root / root
0644
sample_doctest_no_doctests.py
0.263 KB
10 Apr 2024 4.58 AM
root / root
0644
sample_doctest_no_doctests.pyc
0.724 KB
10 Apr 2024 4.58 AM
root / root
0644
sample_doctest_no_doctests.pyo
0.724 KB
10 Apr 2024 4.58 AM
root / root
0644
script_helper.py
0.04 KB
10 Apr 2024 4.58 AM
root / root
0644
script_helper.pyc
0.182 KB
10 Apr 2024 4.58 AM
root / root
0644
script_helper.pyo
0.182 KB
10 Apr 2024 4.58 AM
root / root
0644
selfsigned_pythontestdotnet.pem
2.08 KB
10 Apr 2024 4.58 AM
root / root
0644
seq_tests.py
13.865 KB
10 Apr 2024 4.58 AM
root / root
0644
seq_tests.pyc
19.233 KB
10 Apr 2024 4.58 AM
root / root
0644
seq_tests.pyo
19.233 KB
10 Apr 2024 4.58 AM
root / root
0644
sgml_input.html
8.1 KB
10 Apr 2024 4.58 AM
root / root
0644
sortperf.py
4.635 KB
10 Apr 2024 4.58 AM
root / root
0644
sortperf.pyc
4.168 KB
10 Apr 2024 4.58 AM
root / root
0644
sortperf.pyo
4.119 KB
10 Apr 2024 4.58 AM
root / root
0644
ssl_cert.pem
1.533 KB
10 Apr 2024 4.58 AM
root / root
0644
ssl_key.passwd.pem
2.472 KB
10 Apr 2024 4.58 AM
root / root
0644
ssl_key.pem
2.43 KB
10 Apr 2024 4.58 AM
root / root
0644
ssl_servers.py
7.303 KB
10 Apr 2024 4.58 AM
root / root
0644
ssl_servers.pyc
8.359 KB
10 Apr 2024 4.58 AM
root / root
0644
ssl_servers.pyo
8.359 KB
10 Apr 2024 4.58 AM
root / root
0644
ssltests.py
0.965 KB
10 Apr 2024 4.58 AM
root / root
0644
ssltests.pyc
1.04 KB
10 Apr 2024 4.58 AM
root / root
0644
ssltests.pyo
1.04 KB
10 Apr 2024 4.58 AM
root / root
0644
string_tests.py
65.096 KB
10 Apr 2024 4.58 AM
root / root
0644
string_tests.pyc
49.218 KB
10 Apr 2024 4.58 AM
root / root
0644
string_tests.pyo
49.218 KB
10 Apr 2024 4.58 AM
root / root
0644
symlink_support.py
3.182 KB
10 Apr 2024 4.58 AM
root / root
0644
symlink_support.pyc
3.226 KB
10 Apr 2024 4.58 AM
root / root
0644
symlink_support.pyo
3.226 KB
10 Apr 2024 4.58 AM
root / root
0644
talos-2019-0758.pem
1.299 KB
10 Apr 2024 4.58 AM
root / root
0644
test_MimeWriter.py
7.415 KB
10 Apr 2024 4.58 AM
root / root
0644
test_MimeWriter.pyc
7.709 KB
10 Apr 2024 4.58 AM
root / root
0644
test_MimeWriter.pyo
7.709 KB
10 Apr 2024 4.58 AM
root / root
0644
test_SimpleHTTPServer.py
1.313 KB
10 Apr 2024 4.58 AM
root / root
0644
test_SimpleHTTPServer.pyc
2.233 KB
10 Apr 2024 4.58 AM
root / root
0644
test_SimpleHTTPServer.pyo
2.233 KB
10 Apr 2024 4.58 AM
root / root
0644
test_StringIO.py
6.932 KB
10 Apr 2024 4.58 AM
root / root
0644
test_StringIO.pyc
8.325 KB
10 Apr 2024 4.58 AM
root / root
0644
test_StringIO.pyo
8.325 KB
10 Apr 2024 4.58 AM
root / root
0644
test___all__.py
4.076 KB
10 Apr 2024 4.58 AM
root / root
0644
test___all__.pyc
3.801 KB
10 Apr 2024 4.58 AM
root / root
0644
test___all__.pyo
3.801 KB
10 Apr 2024 4.58 AM
root / root
0644
test___future__.py
2.455 KB
10 Apr 2024 4.58 AM
root / root
0644
test___future__.pyc
2.786 KB
10 Apr 2024 4.58 AM
root / root
0644
test___future__.pyo
2.786 KB
10 Apr 2024 4.58 AM
root / root
0644
test__locale.py
6.476 KB
10 Apr 2024 4.58 AM
root / root
0644
test__locale.pyc
6.14 KB
10 Apr 2024 4.58 AM
root / root
0644
test__locale.pyo
6.14 KB
10 Apr 2024 4.58 AM
root / root
0644
test__osx_support.py
11.554 KB
10 Apr 2024 4.58 AM
root / root
0644
test__osx_support.pyc
11.178 KB
10 Apr 2024 4.58 AM
root / root
0644
test__osx_support.pyo
11.178 KB
10 Apr 2024 4.58 AM
root / root
0644
test_abc.py
7.822 KB
10 Apr 2024 4.58 AM
root / root
0644
test_abc.pyc
13.128 KB
10 Apr 2024 4.58 AM
root / root
0644
test_abc.pyo
13.128 KB
10 Apr 2024 4.58 AM
root / root
0644
test_abstract_numbers.py
1.646 KB
10 Apr 2024 4.58 AM
root / root
0644
test_abstract_numbers.pyc
2.515 KB
10 Apr 2024 4.58 AM
root / root
0644
test_abstract_numbers.pyo
2.515 KB
10 Apr 2024 4.58 AM
root / root
0644
test_aepack.py
2.688 KB
10 Apr 2024 4.58 AM
root / root
0644
test_aepack.pyc
3.713 KB
10 Apr 2024 4.58 AM
root / root
0644
test_aepack.pyo
3.713 KB
10 Apr 2024 4.58 AM
root / root
0644
test_aifc.py
14.267 KB
10 Apr 2024 4.58 AM
root / root
0644
test_aifc.pyc
17.436 KB
10 Apr 2024 4.58 AM
root / root
0644
test_aifc.pyo
17.436 KB
10 Apr 2024 4.58 AM
root / root
0644
test_al.py
0.734 KB
10 Apr 2024 4.58 AM
root / root
0644
test_al.pyc
0.853 KB
10 Apr 2024 4.58 AM
root / root
0644
test_al.pyo
0.853 KB
10 Apr 2024 4.58 AM
root / root
0644
test_anydbm.py
2.212 KB
10 Apr 2024 4.58 AM
root / root
0644
test_anydbm.pyc
3.678 KB
10 Apr 2024 4.58 AM
root / root
0644
test_anydbm.pyo
3.678 KB
10 Apr 2024 4.58 AM
root / root
0644
test_applesingle.py
1.768 KB
10 Apr 2024 4.58 AM
root / root
0644
test_applesingle.pyc
2.556 KB
10 Apr 2024 4.58 AM
root / root
0644
test_applesingle.pyo
2.556 KB
10 Apr 2024 4.58 AM
root / root
0644
test_argparse.py
155.472 KB
10 Apr 2024 4.58 AM
root / root
0644
test_argparse.pyc
178.991 KB
10 Apr 2024 4.58 AM
root / root
0644
test_argparse.pyo
178.662 KB
10 Apr 2024 4.58 AM
root / root
0644
test_array.py
37.162 KB
10 Apr 2024 4.58 AM
root / root
0644
test_array.pyc
37.688 KB
10 Apr 2024 4.58 AM
root / root
0644
test_array.pyo
37.688 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ascii_formatd.py
1.874 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ascii_formatd.pyc
2.298 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ascii_formatd.pyo
2.298 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ast.py
25.303 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ast.pyc
23.67 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ast.pyo
23.67 KB
10 Apr 2024 4.58 AM
root / root
0644
test_asynchat.py
9.74 KB
10 Apr 2024 4.58 AM
root / root
0644
test_asynchat.pyc
12.072 KB
10 Apr 2024 4.58 AM
root / root
0644
test_asynchat.pyo
12.072 KB
10 Apr 2024 4.58 AM
root / root
0644
test_asyncore.py
22.946 KB
10 Apr 2024 4.58 AM
root / root
0644
test_asyncore.pyc
29.528 KB
10 Apr 2024 4.58 AM
root / root
0644
test_asyncore.pyo
29.528 KB
10 Apr 2024 4.58 AM
root / root
0644
test_atexit.py
2.388 KB
10 Apr 2024 4.58 AM
root / root
0644
test_atexit.pyc
4.381 KB
10 Apr 2024 4.58 AM
root / root
0644
test_atexit.pyo
4.381 KB
10 Apr 2024 4.58 AM
root / root
0644
test_audioop.py
19.449 KB
10 Apr 2024 4.58 AM
root / root
0644
test_audioop.pyc
19.683 KB
10 Apr 2024 4.58 AM
root / root
0644
test_audioop.pyo
19.683 KB
10 Apr 2024 4.58 AM
root / root
0644
test_augassign.py
7.986 KB
10 Apr 2024 4.58 AM
root / root
0644
test_augassign.pyc
13.419 KB
10 Apr 2024 4.58 AM
root / root
0644
test_augassign.pyo
13.419 KB
10 Apr 2024 4.58 AM
root / root
0644
test_base64.py
10.245 KB
10 Apr 2024 4.58 AM
root / root
0644
test_base64.pyc
9.027 KB
10 Apr 2024 4.58 AM
root / root
0644
test_base64.pyo
9.027 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bastion.py
0.037 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bastion.pyc
0.125 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bastion.pyo
0.125 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bdb.py
36.684 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bdb.pyc
37.602 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bdb.pyo
37.521 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bigaddrspace.py
1.272 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bigaddrspace.pyc
1.532 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bigaddrspace.pyo
1.532 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bigmem.py
37.653 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bigmem.pyc
37.436 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bigmem.pyo
37.436 KB
10 Apr 2024 4.58 AM
root / root
0644
test_binascii.py
12.454 KB
10 Apr 2024 4.58 AM
root / root
0644
test_binascii.pyc
11.015 KB
10 Apr 2024 4.58 AM
root / root
0644
test_binascii.pyo
11.015 KB
10 Apr 2024 4.58 AM
root / root
0644
test_binhex.py
0.98 KB
10 Apr 2024 4.58 AM
root / root
0644
test_binhex.pyc
1.767 KB
10 Apr 2024 4.58 AM
root / root
0644
test_binhex.pyo
1.767 KB
10 Apr 2024 4.58 AM
root / root
0644
test_binop.py
10.489 KB
10 Apr 2024 4.58 AM
root / root
0644
test_binop.pyc
12.925 KB
10 Apr 2024 4.58 AM
root / root
0644
test_binop.pyo
12.925 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bisect.py
14.491 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bisect.pyc
15.51 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bisect.pyo
15.51 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bool.py
13.87 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bool.pyc
14.229 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bool.pyo
14.229 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bsddb.py
11.695 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bsddb.pyc
13.169 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bsddb.pyo
13.169 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bsddb185.py
1.229 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bsddb185.pyc
1.911 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bsddb185.pyo
1.911 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bsddb3.py
2.911 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bsddb3.pyc
2.399 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bsddb3.pyo
2.399 KB
10 Apr 2024 4.58 AM
root / root
0644
test_buffer.py
2.017 KB
10 Apr 2024 4.58 AM
root / root
0644
test_buffer.pyc
3.152 KB
10 Apr 2024 4.58 AM
root / root
0644
test_buffer.pyo
3.152 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bufio.py
2.688 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bufio.pyc
2.701 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bufio.pyo
2.701 KB
10 Apr 2024 4.58 AM
root / root
0644
test_builtin.py
65.276 KB
10 Apr 2024 4.58 AM
root / root
0644
test_builtin.pyc
80.332 KB
10 Apr 2024 4.58 AM
root / root
0644
test_builtin.pyo
80.332 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bytes.py
43.973 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bytes.pyc
50.881 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bytes.pyo
50.881 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bz2.py
19.554 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bz2.pyc
20.021 KB
10 Apr 2024 4.58 AM
root / root
0644
test_bz2.pyo
20.021 KB
10 Apr 2024 4.58 AM
root / root
0644
test_calendar.py
33.919 KB
10 Apr 2024 4.58 AM
root / root
0644
test_calendar.pyc
36.432 KB
10 Apr 2024 4.58 AM
root / root
0644
test_calendar.pyo
36.432 KB
10 Apr 2024 4.58 AM
root / root
0644
test_call.py
3.21 KB
10 Apr 2024 4.58 AM
root / root
0644
test_call.pyc
6.076 KB
10 Apr 2024 4.58 AM
root / root
0644
test_call.pyo
6.076 KB
10 Apr 2024 4.58 AM
root / root
0644
test_capi.py
5.425 KB
10 Apr 2024 4.58 AM
root / root
0644
test_capi.pyc
6.15 KB
10 Apr 2024 4.58 AM
root / root
0644
test_capi.pyo
6.15 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cd.py
0.89 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cd.pyc
0.983 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cd.pyo
0.983 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cfgparser.py
28.106 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cfgparser.pyc
27.804 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cfgparser.pyo
27.804 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cgi.py
19.091 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cgi.pyc
18.294 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cgi.pyo
18.294 KB
10 Apr 2024 4.58 AM
root / root
0644
test_charmapcodec.py
1.8 KB
10 Apr 2024 4.58 AM
root / root
0644
test_charmapcodec.pyc
2.617 KB
10 Apr 2024 4.58 AM
root / root
0644
test_charmapcodec.pyo
2.617 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cl.py
3.887 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cl.pyc
4.892 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cl.pyo
4.892 KB
10 Apr 2024 4.58 AM
root / root
0644
test_class.py
19.178 KB
10 Apr 2024 4.58 AM
root / root
0644
test_class.pyc
20.334 KB
10 Apr 2024 4.58 AM
root / root
0644
test_class.pyo
20.334 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cmath.py
19.314 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cmath.pyc
19.256 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cmath.pyo
19.256 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cmd.py
6.151 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cmd.pyc
8.187 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cmd.pyo
8.187 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cmd_line.py
5.147 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cmd_line.pyc
5.426 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cmd_line.pyo
5.426 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cmd_line_script.py
11.585 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cmd_line_script.pyc
11.847 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cmd_line_script.pyo
11.847 KB
10 Apr 2024 4.58 AM
root / root
0644
test_code.py
4.503 KB
10 Apr 2024 4.58 AM
root / root
0644
test_code.pyc
6.28 KB
10 Apr 2024 4.58 AM
root / root
0644
test_code.pyo
6.28 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codeccallbacks.py
32.496 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codeccallbacks.pyc
28.07 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codeccallbacks.pyo
28.07 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_cn.py
3.527 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_cn.pyc
3.903 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_cn.pyo
3.903 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_hk.py
0.753 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_hk.pyc
1.126 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_hk.pyo
1.126 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_iso2022.py
1.445 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_iso2022.pyc
2.18 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_iso2022.pyo
2.18 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_jp.py
3.771 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_jp.pyc
4.325 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_jp.pyo
4.325 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_kr.py
2.63 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_kr.pyc
2.843 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_kr.pyo
2.843 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_tw.py
0.733 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_tw.pyc
1.116 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecencodings_tw.pyo
1.116 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_cn.py
0.811 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_cn.pyc
1.361 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_cn.pyo
1.361 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_hk.py
0.459 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_hk.pyc
0.838 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_hk.pyo
0.838 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_jp.py
1.784 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_jp.pyc
2.574 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_jp.pyo
2.574 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_kr.py
1.247 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_kr.pyc
1.543 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_kr.pyo
1.543 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_tw.py
0.702 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_tw.pyc
1.184 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecmaps_tw.pyo
1.184 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecs.py
79.553 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecs.pyc
67.042 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codecs.pyo
67.042 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codeop.py
7.469 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codeop.pyc
7.919 KB
10 Apr 2024 4.58 AM
root / root
0644
test_codeop.pyo
7.919 KB
10 Apr 2024 4.58 AM
root / root
0644
test_coercion.py
11.132 KB
10 Apr 2024 4.58 AM
root / root
0644
test_coercion.pyc
15.632 KB
10 Apr 2024 4.58 AM
root / root
0644
test_coercion.pyo
15.632 KB
10 Apr 2024 4.58 AM
root / root
0644
test_collections.py
39.283 KB
10 Apr 2024 4.58 AM
root / root
0644
test_collections.pyc
43.663 KB
10 Apr 2024 4.58 AM
root / root
0644
test_collections.pyo
43.663 KB
10 Apr 2024 4.58 AM
root / root
0644
test_colorsys.py
2.777 KB
10 Apr 2024 4.58 AM
root / root
0644
test_colorsys.pyc
3.78 KB
10 Apr 2024 4.58 AM
root / root
0644
test_colorsys.pyo
3.78 KB
10 Apr 2024 4.58 AM
root / root
0644
test_commands.py
2.578 KB
10 Apr 2024 4.58 AM
root / root
0644
test_commands.pyc
2.247 KB
10 Apr 2024 4.58 AM
root / root
0644
test_commands.pyo
2.247 KB
10 Apr 2024 4.58 AM
root / root
0644
test_compare.py
1.453 KB
10 Apr 2024 4.58 AM
root / root
0644
test_compare.pyc
3.22 KB
10 Apr 2024 4.58 AM
root / root
0644
test_compare.pyo
3.22 KB
10 Apr 2024 4.58 AM
root / root
0644
test_compile.py
24.223 KB
10 Apr 2024 4.58 AM
root / root
0644
test_compile.pyc
26.349 KB
10 Apr 2024 4.58 AM
root / root
0644
test_compile.pyo
26.349 KB
10 Apr 2024 4.58 AM
root / root
0644
test_compileall.py
2.676 KB
10 Apr 2024 4.58 AM
root / root
0644
test_compileall.pyc
3.616 KB
10 Apr 2024 4.58 AM
root / root
0644
test_compileall.pyo
3.616 KB
10 Apr 2024 4.58 AM
root / root
0644
test_compiler.py
10.958 KB
10 Apr 2024 4.58 AM
root / root
0644
test_compiler.pyc
12.672 KB
10 Apr 2024 4.58 AM
root / root
0644
test_compiler.pyo
12.672 KB
10 Apr 2024 4.58 AM
root / root
0644
test_complex.py
28.359 KB
10 Apr 2024 4.58 AM
root / root
0644
test_complex.pyc
34.68 KB
10 Apr 2024 4.58 AM
root / root
0644
test_complex.pyo
34.68 KB
10 Apr 2024 4.58 AM
root / root
0644
test_complex_args.py
3.425 KB
10 Apr 2024 4.58 AM
root / root
0644
test_complex_args.pyc
4.831 KB
10 Apr 2024 4.58 AM
root / root
0644
test_complex_args.pyo
4.831 KB
10 Apr 2024 4.58 AM
root / root
0644
test_contains.py
3.079 KB
10 Apr 2024 4.58 AM
root / root
0644
test_contains.pyc
4.887 KB
10 Apr 2024 4.58 AM
root / root
0644
test_contains.pyo
4.887 KB
10 Apr 2024 4.58 AM
root / root
0644
test_contextlib.py
9.197 KB
10 Apr 2024 4.58 AM
root / root
0644
test_contextlib.pyc
14.579 KB
10 Apr 2024 4.58 AM
root / root
0644
test_contextlib.pyo
14.579 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cookie.py
6.931 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cookie.pyc
7.292 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cookie.pyo
7.292 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cookielib.py
75.125 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cookielib.pyc
51.704 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cookielib.pyo
51.704 KB
10 Apr 2024 4.58 AM
root / root
0644
test_copy.py
22.475 KB
10 Apr 2024 4.58 AM
root / root
0644
test_copy.pyc
41.204 KB
10 Apr 2024 4.58 AM
root / root
0644
test_copy.pyo
41.204 KB
10 Apr 2024 4.58 AM
root / root
0644
test_copy_reg.py
4.513 KB
10 Apr 2024 4.58 AM
root / root
0644
test_copy_reg.pyc
4.944 KB
10 Apr 2024 4.58 AM
root / root
0644
test_copy_reg.pyo
4.944 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cpickle.py
6.809 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cpickle.pyc
10.62 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cpickle.pyo
10.62 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cprofile.py
7.256 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cprofile.pyc
8.086 KB
10 Apr 2024 4.58 AM
root / root
0644
test_cprofile.pyo
8.086 KB
10 Apr 2024 4.58 AM
root / root
0644
test_crypt.py
1.298 KB
10 Apr 2024 4.58 AM
root / root
0644
test_crypt.pyc
2.06 KB
10 Apr 2024 4.58 AM
root / root
0644
test_crypt.pyo
2.06 KB
10 Apr 2024 4.58 AM
root / root
0644
test_csv.py
44.328 KB
10 Apr 2024 4.58 AM
root / root
0644
test_csv.pyc
46.332 KB
10 Apr 2024 4.58 AM
root / root
0644
test_csv.pyo
46.332 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ctypes.py
0.408 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ctypes.pyc
0.726 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ctypes.pyo
0.726 KB
10 Apr 2024 4.58 AM
root / root
0644
test_curses.py
15.53 KB
10 Apr 2024 4.58 AM
root / root
0644
test_curses.pyc
16.396 KB
10 Apr 2024 4.58 AM
root / root
0644
test_curses.pyo
16.396 KB
10 Apr 2024 4.58 AM
root / root
0644
test_datetime.py
133.725 KB
10 Apr 2024 4.58 AM
root / root
0644
test_datetime.pyc
127.232 KB
10 Apr 2024 4.58 AM
root / root
0644
test_datetime.pyo
126.912 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dbm.py
1.236 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dbm.pyc
2.43 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dbm.pyo
2.43 KB
10 Apr 2024 4.58 AM
root / root
0644
test_decimal.py
83.006 KB
10 Apr 2024 4.58 AM
root / root
0644
test_decimal.pyc
80.032 KB
10 Apr 2024 4.58 AM
root / root
0644
test_decimal.pyo
80.032 KB
10 Apr 2024 4.58 AM
root / root
0644
test_decorators.py
9.618 KB
10 Apr 2024 4.58 AM
root / root
0644
test_decorators.pyc
14.211 KB
10 Apr 2024 4.58 AM
root / root
0644
test_decorators.pyo
14.136 KB
10 Apr 2024 4.58 AM
root / root
0644
test_defaultdict.py
5.69 KB
10 Apr 2024 4.58 AM
root / root
0644
test_defaultdict.pyc
6.487 KB
10 Apr 2024 4.58 AM
root / root
0644
test_defaultdict.pyo
6.487 KB
10 Apr 2024 4.58 AM
root / root
0644
test_deque.py
25.562 KB
10 Apr 2024 4.58 AM
root / root
0644
test_deque.pyc
28.944 KB
10 Apr 2024 4.58 AM
root / root
0644
test_deque.pyo
28.9 KB
10 Apr 2024 4.58 AM
root / root
0644
test_descr.py
164.213 KB
10 Apr 2024 4.58 AM
root / root
0644
test_descr.pyc
209.509 KB
10 Apr 2024 4.58 AM
root / root
0644
test_descr.pyo
209.442 KB
10 Apr 2024 4.58 AM
root / root
0644
test_descrtut.py
11.77 KB
10 Apr 2024 4.58 AM
root / root
0644
test_descrtut.pyc
13.092 KB
10 Apr 2024 4.58 AM
root / root
0644
test_descrtut.pyo
13.092 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dict.py
24.177 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dict.pyc
35.261 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dict.pyo
35.261 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dictcomps.py
3.759 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dictcomps.pyc
5.806 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dictcomps.pyo
5.806 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dictviews.py
9.887 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dictviews.pyc
9.451 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dictviews.pyo
9.451 KB
10 Apr 2024 4.58 AM
root / root
0644
test_difflib.py
11.228 KB
10 Apr 2024 4.58 AM
root / root
0644
test_difflib.pyc
13.041 KB
10 Apr 2024 4.58 AM
root / root
0644
test_difflib.pyo
13.041 KB
10 Apr 2024 4.58 AM
root / root
0644
test_difflib_expect.html
100.862 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dircache.py
2.351 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dircache.pyc
2.94 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dircache.pyo
2.94 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dis.py
4.554 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dis.pyc
5.538 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dis.pyo
5.488 KB
10 Apr 2024 4.58 AM
root / root
0644
test_distutils.py
0.376 KB
10 Apr 2024 4.58 AM
root / root
0644
test_distutils.pyc
0.707 KB
10 Apr 2024 4.58 AM
root / root
0644
test_distutils.pyo
0.707 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dl.py
1.101 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dl.pyc
1.369 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dl.pyo
1.369 KB
10 Apr 2024 4.58 AM
root / root
0644
test_doctest.py
86.23 KB
10 Apr 2024 4.58 AM
root / root
0644
test_doctest.pyc
89.622 KB
10 Apr 2024 4.58 AM
root / root
0644
test_doctest.pyo
89.561 KB
10 Apr 2024 4.58 AM
root / root
0644
test_doctest.txt
0.289 KB
10 Apr 2024 4.58 AM
root / root
0644
test_doctest2.py
2.331 KB
10 Apr 2024 4.58 AM
root / root
0644
test_doctest2.pyc
3.546 KB
10 Apr 2024 4.58 AM
root / root
0644
test_doctest2.pyo
3.546 KB
10 Apr 2024 4.58 AM
root / root
0644
test_doctest2.txt
0.383 KB
10 Apr 2024 4.58 AM
root / root
0644
test_doctest3.txt
0.079 KB
10 Apr 2024 4.58 AM
root / root
0644
test_doctest4.txt
0.307 KB
10 Apr 2024 4.58 AM
root / root
0644
test_docxmlrpc.py
8.302 KB
10 Apr 2024 4.58 AM
root / root
0644
test_docxmlrpc.pyc
9.368 KB
10 Apr 2024 4.58 AM
root / root
0644
test_docxmlrpc.pyo
9.368 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dumbdbm.py
5.801 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dumbdbm.pyc
7.239 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dumbdbm.pyo
7.239 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dummy_thread.py
7.001 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dummy_thread.pyc
7.884 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dummy_thread.pyo
7.884 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dummy_threading.py
1.797 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dummy_threading.pyc
2.261 KB
10 Apr 2024 4.58 AM
root / root
0644
test_dummy_threading.pyo
2.261 KB
10 Apr 2024 4.58 AM
root / root
0644
test_email.py
0.389 KB
10 Apr 2024 4.58 AM
root / root
0644
test_email.pyc
0.552 KB
10 Apr 2024 4.58 AM
root / root
0644
test_email.pyo
0.552 KB
10 Apr 2024 4.58 AM
root / root
0644
test_email_codecs.py
0.451 KB
10 Apr 2024 4.58 AM
root / root
0644
test_email_codecs.pyc
0.602 KB
10 Apr 2024 4.58 AM
root / root
0644
test_email_codecs.pyo
0.602 KB
10 Apr 2024 4.58 AM
root / root
0644
test_email_renamed.py
0.301 KB
10 Apr 2024 4.58 AM
root / root
0644
test_email_renamed.pyc
0.491 KB
10 Apr 2024 4.58 AM
root / root
0644
test_email_renamed.pyo
0.491 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ensurepip.py
9.59 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ensurepip.pyc
11.665 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ensurepip.pyo
11.665 KB
10 Apr 2024 4.58 AM
root / root
0644
test_enumerate.py
7.359 KB
10 Apr 2024 4.58 AM
root / root
0644
test_enumerate.pyc
14.593 KB
10 Apr 2024 4.58 AM
root / root
0644
test_enumerate.pyo
14.593 KB
10 Apr 2024 4.58 AM
root / root
0644
test_eof.py
0.851 KB
10 Apr 2024 4.58 AM
root / root
0644
test_eof.pyc
1.427 KB
10 Apr 2024 4.58 AM
root / root
0644
test_eof.pyo
1.427 KB
10 Apr 2024 4.58 AM
root / root
0644
test_epoll.py
7.216 KB
10 Apr 2024 4.58 AM
root / root
0644
test_epoll.pyc
6.067 KB
10 Apr 2024 4.58 AM
root / root
0644
test_epoll.pyo
6.067 KB
10 Apr 2024 4.58 AM
root / root
0644
test_errno.py
1.134 KB
10 Apr 2024 4.58 AM
root / root
0644
test_errno.pyc
1.881 KB
10 Apr 2024 4.58 AM
root / root
0644
test_errno.pyo
1.881 KB
10 Apr 2024 4.58 AM
root / root
0644
test_exception_variations.py
3.946 KB
10 Apr 2024 4.58 AM
root / root
0644
test_exception_variations.pyc
4.143 KB
10 Apr 2024 4.58 AM
root / root
0644
test_exception_variations.pyo
4.143 KB
10 Apr 2024 4.58 AM
root / root
0644
test_exceptions.py
28.087 KB
10 Apr 2024 4.58 AM
root / root
0644
test_exceptions.pyc
25.48 KB
10 Apr 2024 4.58 AM
root / root
0644
test_exceptions.pyo
25.438 KB
10 Apr 2024 4.58 AM
root / root
0644
test_extcall.py
8.318 KB
10 Apr 2024 4.58 AM
root / root
0644
test_extcall.pyc
8.951 KB
10 Apr 2024 4.58 AM
root / root
0644
test_extcall.pyo
8.951 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fcntl.py
4.344 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fcntl.pyc
5.136 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fcntl.pyo
5.136 KB
10 Apr 2024 4.58 AM
root / root
0644
test_file.py
10.919 KB
10 Apr 2024 4.58 AM
root / root
0644
test_file.pyc
11.062 KB
10 Apr 2024 4.58 AM
root / root
0644
test_file.pyo
10.965 KB
10 Apr 2024 4.58 AM
root / root
0644
test_file2k.py
32.937 KB
10 Apr 2024 4.58 AM
root / root
0644
test_file2k.py.stdin-test
32.855 KB
10 Apr 2024 4.58 AM
root / root
0644
test_file2k.pyc
33.71 KB
10 Apr 2024 4.58 AM
root / root
0644
test_file2k.pyo
33.528 KB
10 Apr 2024 4.58 AM
root / root
0644
test_file_eintr.py
10.234 KB
10 Apr 2024 4.58 AM
root / root
0644
test_file_eintr.pyc
8.59 KB
10 Apr 2024 4.58 AM
root / root
0644
test_file_eintr.pyo
8.496 KB
10 Apr 2024 4.58 AM
root / root
0644
test_filecmp.py
5.27 KB
10 Apr 2024 4.58 AM
root / root
0644
test_filecmp.pyc
5.174 KB
10 Apr 2024 4.58 AM
root / root
0644
test_filecmp.pyo
5.174 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fileinput.py
11.572 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fileinput.pyc
12 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fileinput.pyo
12 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fileio.py
16.708 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fileio.pyc
19.681 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fileio.pyo
19.681 KB
10 Apr 2024 4.58 AM
root / root
0644
test_float.py
62.903 KB
10 Apr 2024 4.58 AM
root / root
0644
test_float.pyc
50.806 KB
10 Apr 2024 4.58 AM
root / root
0644
test_float.pyo
50.806 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fnmatch.py
6.133 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fnmatch.pyc
6.85 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fnmatch.pyo
6.85 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fork1.py
2.156 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fork1.pyc
2.413 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fork1.pyo
2.413 KB
10 Apr 2024 4.58 AM
root / root
0644
test_format.py
15.901 KB
10 Apr 2024 4.58 AM
root / root
0644
test_format.pyc
13.236 KB
10 Apr 2024 4.58 AM
root / root
0644
test_format.pyo
13.236 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fpformat.py
2.643 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fpformat.pyc
3.116 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fpformat.pyo
3.116 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fractions.py
23.941 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fractions.pyc
26.315 KB
10 Apr 2024 4.58 AM
root / root
0644
test_fractions.pyo
26.085 KB
10 Apr 2024 4.58 AM
root / root
0644
test_frozen.py
1.207 KB
10 Apr 2024 4.58 AM
root / root
0644
test_frozen.pyc
1.543 KB
10 Apr 2024 4.58 AM
root / root
0644
test_frozen.pyo
1.543 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ftplib.py
29.891 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ftplib.pyc
37.578 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ftplib.pyo
37.516 KB
10 Apr 2024 4.58 AM
root / root
0644
test_funcattrs.py
12.45 KB
10 Apr 2024 4.58 AM
root / root
0644
test_funcattrs.pyc
14.92 KB
10 Apr 2024 4.58 AM
root / root
0644
test_funcattrs.pyo
14.92 KB
10 Apr 2024 4.58 AM
root / root
0644
test_functools.py
23.466 KB
10 Apr 2024 4.58 AM
root / root
0644
test_functools.pyc
34.05 KB
10 Apr 2024 4.58 AM
root / root
0644
test_functools.pyo
34.05 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future.py
3.769 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future.pyc
5.148 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future.pyo
5.148 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future1.py
0.224 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future1.pyc
0.563 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future1.pyo
0.563 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future2.py
0.147 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future2.pyc
0.577 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future2.pyo
0.577 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future3.py
0.563 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future3.pyc
1.648 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future3.pyo
1.648 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future4.py
1.48 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future4.pyc
1.632 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future4.pyo
1.632 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future5.py
0.53 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future5.pyc
1.251 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future5.pyo
1.251 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future_builtins.py
1.287 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future_builtins.pyc
1.923 KB
10 Apr 2024 4.58 AM
root / root
0644
test_future_builtins.pyo
1.923 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gc.py
23.837 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gc.pyc
22.14 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gc.pyo
22.081 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gdb.py
39.78 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gdb.pyc
32.27 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gdb.pyo
32.27 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gdbm.py
2.772 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gdbm.pyc
3.538 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gdbm.pyo
3.538 KB
10 Apr 2024 4.58 AM
root / root
0644
test_generators.py
49.627 KB
10 Apr 2024 4.58 AM
root / root
0644
test_generators.pyc
45.1 KB
10 Apr 2024 4.58 AM
root / root
0644
test_generators.pyo
44.441 KB
10 Apr 2024 4.58 AM
root / root
0644
test_genericpath.py
10.314 KB
10 Apr 2024 4.58 AM
root / root
0644
test_genericpath.pyc
10.194 KB
10 Apr 2024 4.58 AM
root / root
0644
test_genericpath.pyo
10.194 KB
10 Apr 2024 4.58 AM
root / root
0644
test_genexps.py
7.234 KB
10 Apr 2024 4.58 AM
root / root
0644
test_genexps.pyc
7.472 KB
10 Apr 2024 4.58 AM
root / root
0644
test_genexps.pyo
7.472 KB
10 Apr 2024 4.58 AM
root / root
0644
test_getargs.py
0.916 KB
10 Apr 2024 4.58 AM
root / root
0644
test_getargs.pyc
1.15 KB
10 Apr 2024 4.58 AM
root / root
0644
test_getargs.pyo
1.15 KB
10 Apr 2024 4.58 AM
root / root
0644
test_getargs2.py
39.705 KB
10 Apr 2024 4.58 AM
root / root
0644
test_getargs2.pyc
38.504 KB
10 Apr 2024 4.58 AM
root / root
0644
test_getargs2.pyo
38.504 KB
10 Apr 2024 4.58 AM
root / root
0644
test_getopt.py
6.81 KB
10 Apr 2024 4.58 AM
root / root
0644
test_getopt.pyc
6.78 KB
10 Apr 2024 4.58 AM
root / root
0644
test_getopt.pyo
6.78 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gettext.py
23.016 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gettext.pyc
25 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gettext.pyo
25 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gl.py
6.572 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gl.pyc
8.389 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gl.pyo
8.389 KB
10 Apr 2024 4.58 AM
root / root
0644
test_glob.py
6.781 KB
10 Apr 2024 4.58 AM
root / root
0644
test_glob.pyc
8.299 KB
10 Apr 2024 4.58 AM
root / root
0644
test_glob.pyo
8.299 KB
10 Apr 2024 4.58 AM
root / root
0644
test_global.py
0.979 KB
10 Apr 2024 4.58 AM
root / root
0644
test_global.pyc
1.812 KB
10 Apr 2024 4.58 AM
root / root
0644
test_global.pyo
1.812 KB
10 Apr 2024 4.58 AM
root / root
0644
test_grammar.py
39.1 KB
10 Apr 2024 4.58 AM
root / root
0644
test_grammar.pyc
45.598 KB
10 Apr 2024 4.58 AM
root / root
0644
test_grammar.pyo
45.188 KB
10 Apr 2024 4.58 AM
root / root
0644
test_grp.py
3.214 KB
10 Apr 2024 4.58 AM
root / root
0644
test_grp.pyc
2.984 KB
10 Apr 2024 4.58 AM
root / root
0644
test_grp.pyo
2.984 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gzip.py
13.171 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gzip.pyc
12.894 KB
10 Apr 2024 4.58 AM
root / root
0644
test_gzip.pyo
12.894 KB
10 Apr 2024 4.58 AM
root / root
0644
test_hash.py
7.973 KB
10 Apr 2024 4.58 AM
root / root
0644
test_hash.pyc
12.169 KB
10 Apr 2024 4.58 AM
root / root
0644
test_hash.pyo
12.169 KB
10 Apr 2024 4.58 AM
root / root
0644
test_hashlib.py
20.054 KB
10 Apr 2024 4.58 AM
root / root
0644
test_hashlib.pyc
20.328 KB
10 Apr 2024 4.58 AM
root / root
0644
test_hashlib.pyo
20.143 KB
10 Apr 2024 4.58 AM
root / root
0644
test_heapq.py
15.402 KB
10 Apr 2024 4.58 AM
root / root
0644
test_heapq.pyc
22.76 KB
10 Apr 2024 4.58 AM
root / root
0644
test_heapq.pyo
22.76 KB
10 Apr 2024 4.58 AM
root / root
0644
test_hmac.py
16.975 KB
10 Apr 2024 4.58 AM
root / root
0644
test_hmac.pyc
15.192 KB
10 Apr 2024 4.58 AM
root / root
0644
test_hmac.pyo
15.192 KB
10 Apr 2024 4.58 AM
root / root
0644
test_hotshot.py
5.002 KB
10 Apr 2024 4.58 AM
root / root
0644
test_hotshot.pyc
6.559 KB
10 Apr 2024 4.58 AM
root / root
0644
test_hotshot.pyo
6.559 KB
10 Apr 2024 4.58 AM
root / root
0644
test_htmllib.py
1.932 KB
10 Apr 2024 4.58 AM
root / root
0644
test_htmllib.pyc
3.324 KB
10 Apr 2024 4.58 AM
root / root
0644
test_htmllib.pyo
3.324 KB
10 Apr 2024 4.58 AM
root / root
0644
test_htmlparser.py
24.735 KB
10 Apr 2024 4.58 AM
root / root
0644
test_htmlparser.pyc
27.164 KB
10 Apr 2024 4.58 AM
root / root
0644
test_htmlparser.pyo
27.164 KB
10 Apr 2024 4.58 AM
root / root
0644
test_httplib.py
39.874 KB
10 Apr 2024 4.58 AM
root / root
0644
test_httplib.pyc
40.26 KB
10 Apr 2024 4.58 AM
root / root
0644
test_httplib.pyo
40.26 KB
10 Apr 2024 4.58 AM
root / root
0644
test_httpservers.py
24.559 KB
10 Apr 2024 4.58 AM
root / root
0644
test_httpservers.pyc
29.76 KB
10 Apr 2024 4.58 AM
root / root
0644
test_httpservers.pyo
29.76 KB
10 Apr 2024 4.58 AM
root / root
0644
test_idle.py
0.802 KB
10 Apr 2024 4.58 AM
root / root
0644
test_idle.pyc
0.754 KB
10 Apr 2024 4.58 AM
root / root
0644
test_idle.pyo
0.754 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imageop.py
6.823 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imageop.pyc
5.242 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imageop.pyo
5.242 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imaplib.py
7.551 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imaplib.pyc
9.797 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imaplib.pyo
9.797 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imgfile.py
4.186 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imgfile.pyc
2.401 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imgfile.pyo
2.401 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imghdr.py
3.768 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imghdr.pyc
5.791 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imghdr.pyo
5.791 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imp.py
2.31 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imp.pyc
2.651 KB
10 Apr 2024 4.58 AM
root / root
0644
test_imp.pyo
2.651 KB
10 Apr 2024 4.58 AM
root / root
0644
test_import.py
24.318 KB
10 Apr 2024 4.58 AM
root / root
0644
test_import.pyc
22.346 KB
10 Apr 2024 4.58 AM
root / root
0644
test_import.pyo
22.212 KB
10 Apr 2024 4.58 AM
root / root
0644
test_import_magic.py
2.214 KB
10 Apr 2024 4.58 AM
root / root
0644
test_import_magic.pyc
2.584 KB
10 Apr 2024 4.58 AM
root / root
0644
test_import_magic.pyo
2.584 KB
10 Apr 2024 4.58 AM
root / root
0644
test_importhooks.py
8.165 KB
10 Apr 2024 4.58 AM
root / root
0644
test_importhooks.pyc
9.931 KB
10 Apr 2024 4.58 AM
root / root
0644
test_importhooks.pyo
9.931 KB
10 Apr 2024 4.58 AM
root / root
0644
test_importlib.py
5.631 KB
10 Apr 2024 4.58 AM
root / root
0644
test_importlib.pyc
6.376 KB
10 Apr 2024 4.58 AM
root / root
0644
test_importlib.pyo
6.376 KB
10 Apr 2024 4.58 AM
root / root
0644
test_index.py
9.826 KB
10 Apr 2024 4.58 AM
root / root
0644
test_index.pyc
16.884 KB
10 Apr 2024 4.58 AM
root / root
0644
test_index.pyo
16.884 KB
10 Apr 2024 4.58 AM
root / root
0644
test_inspect.py
35.548 KB
10 Apr 2024 4.58 AM
root / root
0644
test_inspect.pyc
41.727 KB
10 Apr 2024 4.58 AM
root / root
0644
test_inspect.pyo
41.673 KB
10 Apr 2024 4.58 AM
root / root
0644
test_int.py
19.544 KB
10 Apr 2024 4.58 AM
root / root
0644
test_int.pyc
20.121 KB
10 Apr 2024 4.58 AM
root / root
0644
test_int.pyo
20.121 KB
10 Apr 2024 4.58 AM
root / root
0644
test_int_literal.py
8.914 KB
10 Apr 2024 4.58 AM
root / root
0644
test_int_literal.pyc
4.885 KB
10 Apr 2024 4.58 AM
root / root
0644
test_int_literal.pyo
4.885 KB
10 Apr 2024 4.58 AM
root / root
0644
test_io.py
123.404 KB
10 Apr 2024 4.58 AM
root / root
0644
test_io.pyc
130.105 KB
10 Apr 2024 4.58 AM
root / root
0644
test_io.pyo
130.014 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ioctl.py
3.233 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ioctl.pyc
3.499 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ioctl.pyo
3.499 KB
10 Apr 2024 4.58 AM
root / root
0644
test_isinstance.py
9.576 KB
10 Apr 2024 4.58 AM
root / root
0644
test_isinstance.pyc
12.317 KB
10 Apr 2024 4.58 AM
root / root
0644
test_isinstance.pyo
12.317 KB
10 Apr 2024 4.58 AM
root / root
0644
test_iter.py
29.298 KB
10 Apr 2024 4.58 AM
root / root
0644
test_iter.pyc
35.379 KB
10 Apr 2024 4.58 AM
root / root
0644
test_iter.pyo
35.347 KB
10 Apr 2024 4.58 AM
root / root
0644
test_iterlen.py
7.952 KB
10 Apr 2024 4.58 AM
root / root
0644
test_iterlen.pyc
12.321 KB
10 Apr 2024 4.58 AM
root / root
0644
test_iterlen.pyo
12.321 KB
10 Apr 2024 4.58 AM
root / root
0644
test_itertools.py
73.607 KB
10 Apr 2024 4.58 AM
root / root
0644
test_itertools.pyc
87.461 KB
10 Apr 2024 4.58 AM
root / root
0644
test_itertools.pyo
87.461 KB
10 Apr 2024 4.58 AM
root / root
0644
test_json.py
0.319 KB
10 Apr 2024 4.58 AM
root / root
0644
test_json.pyc
0.654 KB
10 Apr 2024 4.58 AM
root / root
0644
test_json.pyo
0.654 KB
10 Apr 2024 4.58 AM
root / root
0644
test_kqueue.py
8.108 KB
10 Apr 2024 4.58 AM
root / root
0644
test_kqueue.pyc
7.158 KB
10 Apr 2024 4.58 AM
root / root
0644
test_kqueue.pyo
7.158 KB
10 Apr 2024 4.58 AM
root / root
0644
test_largefile.py
7.463 KB
10 Apr 2024 4.58 AM
root / root
0644
test_largefile.pyc
6.405 KB
10 Apr 2024 4.58 AM
root / root
0644
test_largefile.pyo
6.405 KB
10 Apr 2024 4.58 AM
root / root
0644
test_lib2to3.py
0.6 KB
10 Apr 2024 4.58 AM
root / root
0644
test_lib2to3.pyc
0.966 KB
10 Apr 2024 4.58 AM
root / root
0644
test_lib2to3.pyo
0.966 KB
10 Apr 2024 4.58 AM
root / root
0644
test_linecache.py
4.555 KB
10 Apr 2024 4.58 AM
root / root
0644
test_linecache.pyc
4.33 KB
10 Apr 2024 4.58 AM
root / root
0644
test_linecache.pyo
4.33 KB
10 Apr 2024 4.58 AM
root / root
0644
test_linuxaudiodev.py
3.104 KB
10 Apr 2024 4.58 AM
root / root
0644
test_linuxaudiodev.pyc
3.71 KB
10 Apr 2024 4.58 AM
root / root
0644
test_linuxaudiodev.pyo
3.71 KB
10 Apr 2024 4.58 AM
root / root
0644
test_list.py
2.581 KB
10 Apr 2024 4.58 AM
root / root
0644
test_list.pyc
3.099 KB
10 Apr 2024 4.58 AM
root / root
0644
test_list.pyo
3.099 KB
10 Apr 2024 4.58 AM
root / root
0644
test_locale.py
19.106 KB
10 Apr 2024 4.58 AM
root / root
0644
test_locale.pyc
22.411 KB
10 Apr 2024 4.58 AM
root / root
0644
test_locale.pyo
22.411 KB
10 Apr 2024 4.58 AM
root / root
0644
test_logging.py
61.139 KB
10 Apr 2024 4.58 AM
root / root
0644
test_logging.pyc
47.46 KB
10 Apr 2024 4.58 AM
root / root
0644
test_logging.pyo
47.46 KB
10 Apr 2024 4.58 AM
root / root
0644
test_long.py
37.451 KB
10 Apr 2024 4.58 AM
root / root
0644
test_long.pyc
45.225 KB
10 Apr 2024 4.58 AM
root / root
0644
test_long.pyo
45.041 KB
10 Apr 2024 4.58 AM
root / root
0644
test_long_future.py
8.814 KB
10 Apr 2024 4.58 AM
root / root
0644
test_long_future.pyc
12.054 KB
10 Apr 2024 4.58 AM
root / root
0644
test_long_future.pyo
12.054 KB
10 Apr 2024 4.58 AM
root / root
0644
test_longexp.py
0.311 KB
10 Apr 2024 4.58 AM
root / root
0644
test_longexp.pyc
0.896 KB
10 Apr 2024 4.58 AM
root / root
0644
test_longexp.pyo
0.896 KB
10 Apr 2024 4.58 AM
root / root
0644
test_macos.py
2.718 KB
10 Apr 2024 4.58 AM
root / root
0644
test_macos.pyc
2.932 KB
10 Apr 2024 4.58 AM
root / root
0644
test_macos.pyo
2.932 KB
10 Apr 2024 4.58 AM
root / root
0644
test_macostools.py
2.924 KB
10 Apr 2024 4.58 AM
root / root
0644
test_macostools.pyc
3.606 KB
10 Apr 2024 4.58 AM
root / root
0644
test_macostools.pyo
3.606 KB
10 Apr 2024 4.58 AM
root / root
0644
test_macpath.py
2.871 KB
10 Apr 2024 4.58 AM
root / root
0644
test_macpath.pyc
3.854 KB
10 Apr 2024 4.58 AM
root / root
0644
test_macpath.pyo
3.854 KB
10 Apr 2024 4.58 AM
root / root
0644
test_macurl2path.py
1.796 KB
10 Apr 2024 4.58 AM
root / root
0644
test_macurl2path.pyc
1.896 KB
10 Apr 2024 4.58 AM
root / root
0644
test_macurl2path.pyo
1.896 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mailbox.py
84.54 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mailbox.pyc
84.453 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mailbox.pyo
84.453 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mailcap.py
10.659 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mailcap.pyc
8.278 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mailcap.pyo
8.278 KB
10 Apr 2024 4.58 AM
root / root
0644
test_marshal.py
15.516 KB
10 Apr 2024 4.58 AM
root / root
0644
test_marshal.pyc
17.293 KB
10 Apr 2024 4.58 AM
root / root
0644
test_marshal.pyo
17.293 KB
10 Apr 2024 4.58 AM
root / root
0644
test_math.py
43.447 KB
10 Apr 2024 4.58 AM
root / root
0644
test_math.pyc
38.922 KB
10 Apr 2024 4.58 AM
root / root
0644
test_math.pyo
38.922 KB
10 Apr 2024 4.58 AM
root / root
0644
test_md5.py
1.748 KB
10 Apr 2024 4.58 AM
root / root
0644
test_md5.pyc
2.74 KB
10 Apr 2024 4.58 AM
root / root
0644
test_md5.pyo
2.74 KB
10 Apr 2024 4.58 AM
root / root
0644
test_memoryio.py
27.79 KB
10 Apr 2024 4.58 AM
root / root
0644
test_memoryio.pyc
28.57 KB
10 Apr 2024 4.58 AM
root / root
0644
test_memoryio.pyo
28.57 KB
10 Apr 2024 4.58 AM
root / root
0644
test_memoryview.py
12.339 KB
10 Apr 2024 4.58 AM
root / root
0644
test_memoryview.pyc
13.958 KB
10 Apr 2024 4.58 AM
root / root
0644
test_memoryview.pyo
13.958 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mhlib.py
10.881 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mhlib.pyc
11.504 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mhlib.pyo
11.504 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mimetools.py
1.736 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mimetools.pyc
2.499 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mimetools.pyo
2.499 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mimetypes.py
6.096 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mimetypes.pyc
8.404 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mimetypes.pyo
8.404 KB
10 Apr 2024 4.58 AM
root / root
0644
test_minidom.py
61.933 KB
10 Apr 2024 4.58 AM
root / root
0644
test_minidom.pyc
52.697 KB
10 Apr 2024 4.58 AM
root / root
0644
test_minidom.pyo
52.697 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mmap.py
25.232 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mmap.pyc
21.504 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mmap.pyo
21.454 KB
10 Apr 2024 4.58 AM
root / root
0644
test_module.py
2.686 KB
10 Apr 2024 4.58 AM
root / root
0644
test_module.pyc
3.309 KB
10 Apr 2024 4.58 AM
root / root
0644
test_module.pyo
3.309 KB
10 Apr 2024 4.58 AM
root / root
0644
test_modulefinder.py
8.175 KB
10 Apr 2024 4.58 AM
root / root
0644
test_modulefinder.pyc
8.196 KB
10 Apr 2024 4.58 AM
root / root
0644
test_modulefinder.pyo
8.196 KB
10 Apr 2024 4.58 AM
root / root
0644
test_msilib.py
3.003 KB
10 Apr 2024 4.58 AM
root / root
0644
test_msilib.pyc
3.642 KB
10 Apr 2024 4.58 AM
root / root
0644
test_msilib.pyo
3.642 KB
10 Apr 2024 4.58 AM
root / root
0644
test_multibytecodec.py
10.816 KB
10 Apr 2024 4.58 AM
root / root
0644
test_multibytecodec.pyc
12.393 KB
10 Apr 2024 4.58 AM
root / root
0644
test_multibytecodec.pyo
12.393 KB
10 Apr 2024 4.58 AM
root / root
0644
test_multifile.py
1.662 KB
10 Apr 2024 4.58 AM
root / root
0644
test_multifile.pyc
2.027 KB
10 Apr 2024 4.58 AM
root / root
0644
test_multifile.pyo
1.962 KB
10 Apr 2024 4.58 AM
root / root
0644
test_multiprocessing.py
85.156 KB
10 Apr 2024 4.58 AM
root / root
0644
test_multiprocessing.pyc
90.999 KB
10 Apr 2024 4.58 AM
root / root
0644
test_multiprocessing.pyo
90.871 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mutants.py
8.302 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mutants.pyc
6.464 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mutants.pyo
6.464 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mutex.py
0.976 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mutex.pyc
1.701 KB
10 Apr 2024 4.58 AM
root / root
0644
test_mutex.pyo
1.701 KB
10 Apr 2024 4.58 AM
root / root
0644
test_netrc.py
4.685 KB
10 Apr 2024 4.58 AM
root / root
0644
test_netrc.pyc
6.568 KB
10 Apr 2024 4.58 AM
root / root
0644
test_netrc.pyo
6.568 KB
10 Apr 2024 4.58 AM
root / root
0644
test_new.py
5.91 KB
10 Apr 2024 4.58 AM
root / root
0644
test_new.pyc
5.622 KB
10 Apr 2024 4.58 AM
root / root
0644
test_new.pyo
5.622 KB
10 Apr 2024 4.58 AM
root / root
0644
test_nis.py
1.147 KB
10 Apr 2024 4.58 AM
root / root
0644
test_nis.pyc
1.313 KB
10 Apr 2024 4.58 AM
root / root
0644
test_nis.pyo
1.313 KB
10 Apr 2024 4.58 AM
root / root
0644
test_nntplib.py
1.613 KB
10 Apr 2024 4.58 AM
root / root
0644
test_nntplib.pyc
2.897 KB
10 Apr 2024 4.58 AM
root / root
0644
test_nntplib.pyo
2.897 KB
10 Apr 2024 4.58 AM
root / root
0644
test_normalization.py
3.058 KB
10 Apr 2024 4.58 AM
root / root
0644
test_normalization.pyc
4.023 KB
10 Apr 2024 4.58 AM
root / root
0644
test_normalization.pyo
4.023 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ntpath.py
14.735 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ntpath.pyc
16.218 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ntpath.pyo
16.218 KB
10 Apr 2024 4.58 AM
root / root
0644
test_old_mailbox.py
4.77 KB
10 Apr 2024 4.58 AM
root / root
0644
test_old_mailbox.pyc
5.879 KB
10 Apr 2024 4.58 AM
root / root
0644
test_old_mailbox.pyo
5.879 KB
10 Apr 2024 4.58 AM
root / root
0644
test_opcodes.py
3.036 KB
10 Apr 2024 4.58 AM
root / root
0644
test_opcodes.pyc
4.071 KB
10 Apr 2024 4.58 AM
root / root
0644
test_opcodes.pyo
4.071 KB
10 Apr 2024 4.58 AM
root / root
0644
test_openpty.py
0.764 KB
10 Apr 2024 4.58 AM
root / root
0644
test_openpty.py.tty-fail
0.665 KB
10 Apr 2024 4.58 AM
root / root
0644
test_openpty.pyc
1.283 KB
10 Apr 2024 4.58 AM
root / root
0644
test_openpty.pyo
1.283 KB
10 Apr 2024 4.58 AM
root / root
0644
test_operator.py
21.377 KB
10 Apr 2024 4.58 AM
root / root
0644
test_operator.pyc
27.404 KB
10 Apr 2024 4.58 AM
root / root
0644
test_operator.pyo
27.404 KB
10 Apr 2024 4.58 AM
root / root
0644
test_optparse.py
61.251 KB
10 Apr 2024 4.58 AM
root / root
0644
test_optparse.pyc
75.765 KB
10 Apr 2024 4.58 AM
root / root
0644
test_optparse.pyo
75.765 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ordered_dict.py
13.114 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ordered_dict.pyc
16.095 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ordered_dict.pyo
16.095 KB
10 Apr 2024 4.58 AM
root / root
0644
test_os.py
39.34 KB
10 Apr 2024 4.58 AM
root / root
0644
test_os.pyc
36.406 KB
10 Apr 2024 4.58 AM
root / root
0644
test_os.pyo
36.406 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ossaudiodev.py
5.951 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ossaudiodev.pyc
5.024 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ossaudiodev.pyo
5.024 KB
10 Apr 2024 4.58 AM
root / root
0644
test_parser.py
24.811 KB
10 Apr 2024 4.58 AM
root / root
0644
test_parser.pyc
25.074 KB
10 Apr 2024 4.58 AM
root / root
0644
test_parser.pyo
25.074 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pdb.py
11.41 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pdb.pyc
12.948 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pdb.pyo
12.948 KB
10 Apr 2024 4.58 AM
root / root
0644
test_peepholer.py
8.645 KB
10 Apr 2024 4.58 AM
root / root
0644
test_peepholer.pyc
9.735 KB
10 Apr 2024 4.58 AM
root / root
0644
test_peepholer.pyo
9.735 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pep247.py
1.988 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pep247.pyc
2.476 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pep247.pyo
2.476 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pep277.py
7.57 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pep277.pyc
7.157 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pep277.pyo
7.157 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pep352.py
8.835 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pep352.pyc
8.769 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pep352.pyo
8.769 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pickle.py
3.314 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pickle.pyc
5.093 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pickle.pyo
5.093 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pickletools.py
0.597 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pickletools.pyc
1.273 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pickletools.pyo
1.273 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pipes.py
6.829 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pipes.pyc
7.208 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pipes.pyo
7.208 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pkg.py
9.252 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pkg.pyc
9.153 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pkg.pyo
9.153 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pkgimport.py
2.813 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pkgimport.pyc
3.406 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pkgimport.pyo
3.406 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pkgutil.py
4.542 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pkgutil.pyc
5.454 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pkgutil.pyo
5.454 KB
10 Apr 2024 4.58 AM
root / root
0644
test_platform.py
11.093 KB
10 Apr 2024 4.58 AM
root / root
0644
test_platform.pyc
12.102 KB
10 Apr 2024 4.58 AM
root / root
0644
test_platform.pyo
12.102 KB
10 Apr 2024 4.58 AM
root / root
0644
test_plistlib.py
7.796 KB
10 Apr 2024 4.58 AM
root / root
0644
test_plistlib.pyc
9.15 KB
10 Apr 2024 4.58 AM
root / root
0644
test_plistlib.pyo
9.15 KB
10 Apr 2024 4.58 AM
root / root
0644
test_poll.py
7.144 KB
10 Apr 2024 4.58 AM
root / root
0644
test_poll.pyc
6.965 KB
10 Apr 2024 4.58 AM
root / root
0644
test_poll.pyo
6.965 KB
10 Apr 2024 4.58 AM
root / root
0644
test_popen.py
1.563 KB
10 Apr 2024 4.58 AM
root / root
0644
test_popen.pyc
1.994 KB
10 Apr 2024 4.58 AM
root / root
0644
test_popen.pyo
1.994 KB
10 Apr 2024 4.58 AM
root / root
0644
test_popen2.py
4.214 KB
10 Apr 2024 4.58 AM
root / root
0644
test_popen2.pyc
4.459 KB
10 Apr 2024 4.58 AM
root / root
0644
test_popen2.pyo
4.459 KB
10 Apr 2024 4.58 AM
root / root
0644
test_poplib.py
10.611 KB
10 Apr 2024 4.58 AM
root / root
0644
test_poplib.pyc
15.72 KB
10 Apr 2024 4.58 AM
root / root
0644
test_poplib.pyo
15.657 KB
10 Apr 2024 4.58 AM
root / root
0644
test_posix.py
26.44 KB
10 Apr 2024 4.58 AM
root / root
0644
test_posix.pyc
24.551 KB
10 Apr 2024 4.58 AM
root / root
0644
test_posix.pyo
24.551 KB
10 Apr 2024 4.58 AM
root / root
0644
test_posixpath.py
21.275 KB
10 Apr 2024 4.58 AM
root / root
0644
test_posixpath.pyc
17.92 KB
10 Apr 2024 4.58 AM
root / root
0644
test_posixpath.pyo
17.92 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pow.py
4.515 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pow.pyc
4.667 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pow.pyo
4.667 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pprint.py
25.651 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pprint.pyc
26.244 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pprint.pyo
26.244 KB
10 Apr 2024 4.58 AM
root / root
0644
test_print.py
4.683 KB
10 Apr 2024 4.58 AM
root / root
0644
test_print.pyc
5.947 KB
10 Apr 2024 4.58 AM
root / root
0644
test_print.pyo
5.947 KB
10 Apr 2024 4.58 AM
root / root
0644
test_profile.py
7.843 KB
10 Apr 2024 4.58 AM
root / root
0644
test_profile.pyc
8.332 KB
10 Apr 2024 4.58 AM
root / root
0644
test_profile.pyo
8.332 KB
10 Apr 2024 4.58 AM
root / root
0644
test_property.py
6.766 KB
10 Apr 2024 4.58 AM
root / root
0644
test_property.pyc
11.664 KB
10 Apr 2024 4.58 AM
root / root
0644
test_property.pyo
11.664 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pstats.py
0.937 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pstats.pyc
1.412 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pstats.pyo
1.412 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pty.py
11.385 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pty.py.tty-fail
11.286 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pty.pyc
8.084 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pty.pyo
8.084 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pwd.py
4.188 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pwd.pyc
3.218 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pwd.pyo
3.218 KB
10 Apr 2024 4.58 AM
root / root
0644
test_py3kwarn.py
18.901 KB
10 Apr 2024 4.58 AM
root / root
0644
test_py3kwarn.pyc
23.021 KB
10 Apr 2024 4.58 AM
root / root
0644
test_py3kwarn.pyo
23.021 KB
10 Apr 2024 4.58 AM
root / root
0644
test_py_compile.py
1.7 KB
10 Apr 2024 4.58 AM
root / root
0644
test_py_compile.pyc
2.418 KB
10 Apr 2024 4.58 AM
root / root
0644
test_py_compile.pyo
2.418 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pyclbr.py
7.731 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pyclbr.pyc
6.818 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pyclbr.pyo
6.818 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pydoc.py
23.875 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pydoc.pyc
26.147 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pydoc.pyo
26.147 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pyexpat.py
25.742 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pyexpat.pyc
29.988 KB
10 Apr 2024 4.58 AM
root / root
0644
test_pyexpat.pyo
29.988 KB
10 Apr 2024 4.58 AM
root / root
0644
test_queue.py
11.694 KB
10 Apr 2024 4.58 AM
root / root
0644
test_queue.pyc
10.011 KB
10 Apr 2024 4.58 AM
root / root
0644
test_queue.pyo
10.011 KB
10 Apr 2024 4.58 AM
root / root
0644
test_quopri.py
7.309 KB
10 Apr 2024 4.58 AM
root / root
0644
test_quopri.pyc
7.962 KB
10 Apr 2024 4.58 AM
root / root
0644
test_quopri.pyo
7.962 KB
10 Apr 2024 4.58 AM
root / root
0644
test_random.py
25.158 KB
10 Apr 2024 4.58 AM
root / root
0644
test_random.pyc
25.536 KB
10 Apr 2024 4.58 AM
root / root
0644
test_random.pyo
25.536 KB
10 Apr 2024 4.58 AM
root / root
0644
test_re.py
59.429 KB
10 Apr 2024 4.58 AM
root / root
0644
test_re.pyc
53.845 KB
10 Apr 2024 4.58 AM
root / root
0644
test_re.pyo
53.59 KB
10 Apr 2024 4.58 AM
root / root
0644
test_readline.py
2.365 KB
10 Apr 2024 4.58 AM
root / root
0644
test_readline.pyc
2.575 KB
10 Apr 2024 4.58 AM
root / root
0644
test_readline.pyo
2.575 KB
10 Apr 2024 4.58 AM
root / root
0644
test_regrtest.py
28.505 KB
10 Apr 2024 4.58 AM
root / root
0644
test_regrtest.pyc
27.907 KB
10 Apr 2024 4.58 AM
root / root
0644
test_regrtest.pyo
27.907 KB
10 Apr 2024 4.58 AM
root / root
0644
test_repr.py
12.475 KB
10 Apr 2024 4.58 AM
root / root
0644
test_repr.pyc
15.309 KB
10 Apr 2024 4.58 AM
root / root
0644
test_repr.pyo
15.309 KB
10 Apr 2024 4.58 AM
root / root
0644
test_resource.py
4.756 KB
10 Apr 2024 4.58 AM
root / root
0644
test_resource.pyc
4.072 KB
10 Apr 2024 4.58 AM
root / root
0644
test_resource.pyo
4.072 KB
10 Apr 2024 4.58 AM
root / root
0644
test_rfc822.py
9.239 KB
10 Apr 2024 4.58 AM
root / root
0644
test_rfc822.pyc
9.688 KB
10 Apr 2024 4.58 AM
root / root
0644
test_rfc822.pyo
9.688 KB
10 Apr 2024 4.58 AM
root / root
0644
test_richcmp.py
11.197 KB
10 Apr 2024 4.58 AM
root / root
0644
test_richcmp.pyc
15.967 KB
10 Apr 2024 4.58 AM
root / root
0644
test_richcmp.pyo
15.967 KB
10 Apr 2024 4.58 AM
root / root
0644
test_rlcompleter.py
4.342 KB
10 Apr 2024 4.58 AM
root / root
0644
test_rlcompleter.pyc
4.932 KB
10 Apr 2024 4.58 AM
root / root
0644
test_rlcompleter.pyo
4.932 KB
10 Apr 2024 4.58 AM
root / root
0644
test_robotparser.py
6.908 KB
10 Apr 2024 4.58 AM
root / root
0644
test_robotparser.pyc
9.812 KB
10 Apr 2024 4.58 AM
root / root
0644
test_robotparser.pyo
9.812 KB
10 Apr 2024 4.58 AM
root / root
0644
test_runpy.py
17.043 KB
10 Apr 2024 4.58 AM
root / root
0644
test_runpy.pyc
16.007 KB
10 Apr 2024 4.58 AM
root / root
0644
test_runpy.pyo
16.007 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sax.py
37.773 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sax.pyc
38.055 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sax.pyo
38.055 KB
10 Apr 2024 4.58 AM
root / root
0644
test_scope.py
15.172 KB
10 Apr 2024 4.58 AM
root / root
0644
test_scope.pyc
24.835 KB
10 Apr 2024 4.58 AM
root / root
0644
test_scope.pyo
24.835 KB
10 Apr 2024 4.58 AM
root / root
0644
test_scriptpackages.py
1.364 KB
10 Apr 2024 4.58 AM
root / root
0644
test_scriptpackages.pyc
2.532 KB
10 Apr 2024 4.58 AM
root / root
0644
test_scriptpackages.pyo
2.532 KB
10 Apr 2024 4.58 AM
root / root
0644
test_select.py
2.112 KB
10 Apr 2024 4.58 AM
root / root
0644
test_select.pyc
3.399 KB
10 Apr 2024 4.58 AM
root / root
0644
test_select.pyo
3.399 KB
10 Apr 2024 4.58 AM
root / root
0644
test_set.py
61.322 KB
10 Apr 2024 4.58 AM
root / root
0644
test_set.pyc
84.45 KB
10 Apr 2024 4.58 AM
root / root
0644
test_set.pyo
84.45 KB
10 Apr 2024 4.58 AM
root / root
0644
test_setcomps.py
3.757 KB
10 Apr 2024 4.58 AM
root / root
0644
test_setcomps.pyc
3.993 KB
10 Apr 2024 4.58 AM
root / root
0644
test_setcomps.pyo
3.993 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sets.py
27.254 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sets.pyc
41.098 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sets.pyo
41.098 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sgmllib.py
15.359 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sgmllib.pyc
18.058 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sgmllib.pyo
18.058 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sha.py
1.663 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sha.pyc
2.141 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sha.pyo
2.141 KB
10 Apr 2024 4.58 AM
root / root
0644
test_shelve.py
4.488 KB
10 Apr 2024 4.58 AM
root / root
0644
test_shelve.pyc
6.869 KB
10 Apr 2024 4.58 AM
root / root
0644
test_shelve.pyo
6.869 KB
10 Apr 2024 4.58 AM
root / root
0644
test_shlex.py
5.57 KB
10 Apr 2024 4.58 AM
root / root
0644
test_shlex.pyc
6.286 KB
10 Apr 2024 4.58 AM
root / root
0644
test_shlex.pyo
6.286 KB
10 Apr 2024 4.58 AM
root / root
0644
test_shutil.py
34.104 KB
10 Apr 2024 4.58 AM
root / root
0644
test_shutil.pyc
31.378 KB
10 Apr 2024 4.58 AM
root / root
0644
test_shutil.pyo
31.278 KB
10 Apr 2024 4.58 AM
root / root
0644
test_signal.py
19.146 KB
10 Apr 2024 4.58 AM
root / root
0644
test_signal.pyc
17.229 KB
10 Apr 2024 4.58 AM
root / root
0644
test_signal.pyo
17.229 KB
10 Apr 2024 4.58 AM
root / root
0644
test_site.py
16.934 KB
10 Apr 2024 4.58 AM
root / root
0644
test_site.py.lib64
16.759 KB
10 Apr 2024 4.58 AM
root / root
0644
test_site.pyc
15.986 KB
10 Apr 2024 4.58 AM
root / root
0644
test_site.pyo
15.986 KB
10 Apr 2024 4.58 AM
root / root
0644
test_slice.py
4.546 KB
10 Apr 2024 4.58 AM
root / root
0644
test_slice.pyc
6.361 KB
10 Apr 2024 4.58 AM
root / root
0644
test_slice.pyo
6.361 KB
10 Apr 2024 4.58 AM
root / root
0644
test_smtplib.py
19.549 KB
10 Apr 2024 4.58 AM
root / root
0644
test_smtplib.pyc
20.938 KB
10 Apr 2024 4.58 AM
root / root
0644
test_smtplib.pyo
20.938 KB
10 Apr 2024 4.58 AM
root / root
0644
test_smtpnet.py
0.799 KB
10 Apr 2024 4.58 AM
root / root
0644
test_smtpnet.pyc
1.391 KB
10 Apr 2024 4.58 AM
root / root
0644
test_smtpnet.pyo
1.391 KB
10 Apr 2024 4.58 AM
root / root
0644
test_socket.py
63.06 KB
10 Apr 2024 4.58 AM
root / root
0644
test_socket.pyc
73.318 KB
10 Apr 2024 4.58 AM
root / root
0644
test_socket.pyo
73.318 KB
10 Apr 2024 4.58 AM
root / root
0644
test_socketserver.py
12.51 KB
10 Apr 2024 4.58 AM
root / root
0644
test_socketserver.pyc
14.116 KB
10 Apr 2024 4.58 AM
root / root
0644
test_socketserver.pyo
14.116 KB
10 Apr 2024 4.58 AM
root / root
0644
test_softspace.py
0.625 KB
10 Apr 2024 4.58 AM
root / root
0644
test_softspace.pyc
1.324 KB
10 Apr 2024 4.58 AM
root / root
0644
test_softspace.pyo
1.324 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sort.py
9.241 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sort.pyc
12.425 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sort.pyo
12.425 KB
10 Apr 2024 4.58 AM
root / root
0644
test_source_encoding.py
5.915 KB
10 Apr 2024 4.58 AM
root / root
0644
test_source_encoding.pyc
7.687 KB
10 Apr 2024 4.58 AM
root / root
0644
test_source_encoding.pyo
7.687 KB
10 Apr 2024 4.58 AM
root / root
0644
test_spwd.py
2.297 KB
10 Apr 2024 4.58 AM
root / root
0644
test_spwd.pyc
2.437 KB
10 Apr 2024 4.58 AM
root / root
0644
test_spwd.pyo
2.437 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sqlite.py
0.569 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sqlite.pyc
0.821 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sqlite.pyo
0.821 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ssl.py
154.992 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ssl.pyc
114.979 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ssl.pyo
114.979 KB
10 Apr 2024 4.58 AM
root / root
0644
test_startfile.py
1.556 KB
10 Apr 2024 4.58 AM
root / root
0644
test_startfile.pyc
1.972 KB
10 Apr 2024 4.58 AM
root / root
0644
test_startfile.pyo
1.972 KB
10 Apr 2024 4.58 AM
root / root
0644
test_stat.py
5.563 KB
10 Apr 2024 4.58 AM
root / root
0644
test_stat.pyc
5.841 KB
10 Apr 2024 4.58 AM
root / root
0644
test_stat.pyo
5.841 KB
10 Apr 2024 4.58 AM
root / root
0644
test_str.py
23.433 KB
10 Apr 2024 4.58 AM
root / root
0644
test_str.pyc
24.741 KB
10 Apr 2024 4.58 AM
root / root
0644
test_str.pyo
24.741 KB
10 Apr 2024 4.58 AM
root / root
0644
test_strftime.py
6.908 KB
10 Apr 2024 4.58 AM
root / root
0644
test_strftime.pyc
7.244 KB
10 Apr 2024 4.58 AM
root / root
0644
test_strftime.pyo
7.244 KB
10 Apr 2024 4.58 AM
root / root
0644
test_string.py
18.2 KB
10 Apr 2024 4.58 AM
root / root
0644
test_string.pyc
21.075 KB
10 Apr 2024 4.58 AM
root / root
0644
test_string.pyo
21.075 KB
10 Apr 2024 4.58 AM
root / root
0644
test_stringprep.py
3.17 KB
10 Apr 2024 4.58 AM
root / root
0644
test_stringprep.pyc
2.115 KB
10 Apr 2024 4.58 AM
root / root
0644
test_stringprep.pyo
2.115 KB
10 Apr 2024 4.58 AM
root / root
0644
test_strop.py
6.691 KB
10 Apr 2024 4.58 AM
root / root
0644
test_strop.pyc
8.61 KB
10 Apr 2024 4.58 AM
root / root
0644
test_strop.pyo
8.61 KB
10 Apr 2024 4.58 AM
root / root
0644
test_strptime.py
28.596 KB
10 Apr 2024 4.58 AM
root / root
0644
test_strptime.pyc
26.495 KB
10 Apr 2024 4.58 AM
root / root
0644
test_strptime.pyo
26.495 KB
10 Apr 2024 4.58 AM
root / root
0644
test_strtod.py
19.742 KB
10 Apr 2024 4.58 AM
root / root
0644
test_strtod.pyc
15.32 KB
10 Apr 2024 4.58 AM
root / root
0644
test_strtod.pyo
15.106 KB
10 Apr 2024 4.58 AM
root / root
0644
test_struct.py
24.272 KB
10 Apr 2024 4.58 AM
root / root
0644
test_struct.pyc
21.873 KB
10 Apr 2024 4.58 AM
root / root
0644
test_struct.pyo
21.873 KB
10 Apr 2024 4.58 AM
root / root
0644
test_structmembers.py
3.453 KB
10 Apr 2024 4.58 AM
root / root
0644
test_structmembers.pyc
5.104 KB
10 Apr 2024 4.58 AM
root / root
0644
test_structmembers.pyo
5.104 KB
10 Apr 2024 4.58 AM
root / root
0644
test_structseq.py
3.599 KB
10 Apr 2024 4.58 AM
root / root
0644
test_structseq.pyc
5.385 KB
10 Apr 2024 4.58 AM
root / root
0644
test_structseq.pyo
5.385 KB
10 Apr 2024 4.58 AM
root / root
0644
test_subprocess.py
60.93 KB
10 Apr 2024 4.58 AM
root / root
0644
test_subprocess.pyc
54.378 KB
10 Apr 2024 4.58 AM
root / root
0644
test_subprocess.pyo
54.378 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sunau.py
3.712 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sunau.pyc
4.571 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sunau.pyo
4.571 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sunaudiodev.py
0.671 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sunaudiodev.pyc
1.176 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sunaudiodev.pyo
1.176 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sundry.py
2.917 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sundry.pyc
3.38 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sundry.pyo
3.38 KB
10 Apr 2024 4.58 AM
root / root
0644
test_support.py
0.077 KB
10 Apr 2024 4.58 AM
root / root
0644
test_support.pyc
0.251 KB
10 Apr 2024 4.58 AM
root / root
0644
test_support.pyo
0.251 KB
10 Apr 2024 4.58 AM
root / root
0644
test_symtable.py
6.163 KB
10 Apr 2024 4.58 AM
root / root
0644
test_symtable.pyc
8.16 KB
10 Apr 2024 4.58 AM
root / root
0644
test_symtable.pyo
8.16 KB
10 Apr 2024 4.58 AM
root / root
0644
test_syntax.py
27.48 KB
10 Apr 2024 4.58 AM
root / root
0644
test_syntax.pyc
28.911 KB
10 Apr 2024 4.58 AM
root / root
0644
test_syntax.pyo
28.911 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sys.py
31.322 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sys.pyc
28.441 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sys.pyo
28.441 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sys_setprofile.py
11.111 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sys_setprofile.pyc
16.55 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sys_setprofile.pyo
16.55 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sys_settrace.py
31.606 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sys_settrace.pyc
38.489 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sys_settrace.pyo
38.423 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sysconfig.py
12.689 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sysconfig.pyc
10.939 KB
10 Apr 2024 4.58 AM
root / root
0644
test_sysconfig.pyo
10.939 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tarfile.py
66.433 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tarfile.pyc
69.25 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tarfile.pyo
69.25 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tcl.py
29.777 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tcl.pyc
31.814 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tcl.pyo
31.814 KB
10 Apr 2024 4.58 AM
root / root
0644
test_telnetlib.py
15.688 KB
10 Apr 2024 4.58 AM
root / root
0644
test_telnetlib.pyc
18.715 KB
10 Apr 2024 4.58 AM
root / root
0644
test_telnetlib.pyo
18.715 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tempfile.py
34.967 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tempfile.pyc
35.879 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tempfile.pyo
35.879 KB
10 Apr 2024 4.58 AM
root / root
0644
test_test_support.py
16.046 KB
10 Apr 2024 4.58 AM
root / root
0644
test_test_support.pyc
17.676 KB
10 Apr 2024 4.58 AM
root / root
0644
test_test_support.pyo
17.676 KB
10 Apr 2024 4.58 AM
root / root
0644
test_textwrap.py
25.196 KB
10 Apr 2024 4.58 AM
root / root
0644
test_textwrap.pyc
21.487 KB
10 Apr 2024 4.58 AM
root / root
0644
test_textwrap.pyo
21.487 KB
10 Apr 2024 4.58 AM
root / root
0644
test_thread.py
8.977 KB
10 Apr 2024 4.58 AM
root / root
0644
test_thread.pyc
9.934 KB
10 Apr 2024 4.58 AM
root / root
0644
test_thread.pyo
9.934 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threaded_import.py
2.518 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threaded_import.pyc
1.837 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threaded_import.pyo
1.837 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threadedtempfile.py
1.974 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threadedtempfile.pyc
2.974 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threadedtempfile.pyo
2.974 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threading.py
33.876 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threading.pyc
32.239 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threading.pyo
32.239 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threading_local.py
6.454 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threading_local.pyc
9.377 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threading_local.pyo
9.377 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threadsignals.py
2.971 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threadsignals.pyc
3.139 KB
10 Apr 2024 4.58 AM
root / root
0644
test_threadsignals.pyo
3.139 KB
10 Apr 2024 4.58 AM
root / root
0644
test_time.py
13.212 KB
10 Apr 2024 4.58 AM
root / root
0644
test_time.pyc
10.905 KB
10 Apr 2024 4.58 AM
root / root
0644
test_time.pyo
10.905 KB
10 Apr 2024 4.58 AM
root / root
0644
test_timeit.py
11.511 KB
10 Apr 2024 4.58 AM
root / root
0644
test_timeit.pyc
14.627 KB
10 Apr 2024 4.58 AM
root / root
0644
test_timeit.pyo
14.627 KB
10 Apr 2024 4.58 AM
root / root
0644
test_timeout.py
6.997 KB
10 Apr 2024 4.58 AM
root / root
0644
test_timeout.pyc
7.064 KB
10 Apr 2024 4.58 AM
root / root
0644
test_timeout.pyo
7.064 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tk.py
0.603 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tk.pyc
0.871 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tk.pyo
0.871 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tokenize.py
27.534 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tokenize.pyc
27.466 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tokenize.pyo
27.466 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tools.py
13.08 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tools.pyc
14.198 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tools.pyo
14.198 KB
10 Apr 2024 4.58 AM
root / root
0644
test_trace.py
11.539 KB
10 Apr 2024 4.58 AM
root / root
0644
test_trace.pyc
13.668 KB
10 Apr 2024 4.58 AM
root / root
0644
test_trace.pyo
13.668 KB
10 Apr 2024 4.58 AM
root / root
0644
test_traceback.py
9.431 KB
10 Apr 2024 4.58 AM
root / root
0644
test_traceback.pyc
10.174 KB
10 Apr 2024 4.58 AM
root / root
0644
test_traceback.pyo
10.174 KB
10 Apr 2024 4.58 AM
root / root
0644
test_transformer.py
1.094 KB
10 Apr 2024 4.58 AM
root / root
0644
test_transformer.pyc
1.529 KB
10 Apr 2024 4.58 AM
root / root
0644
test_transformer.pyo
1.445 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ttk_guionly.py
0.976 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ttk_guionly.pyc
1.266 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ttk_guionly.pyo
1.266 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ttk_textonly.py
0.53 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ttk_textonly.pyc
0.839 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ttk_textonly.pyo
0.839 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tuple.py
5.281 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tuple.pyc
7.225 KB
10 Apr 2024 4.58 AM
root / root
0644
test_tuple.pyo
7.225 KB
10 Apr 2024 4.58 AM
root / root
0644
test_turtle.py
12.282 KB
10 Apr 2024 4.58 AM
root / root
0644
test_turtle.pyc
16.075 KB
10 Apr 2024 4.58 AM
root / root
0644
test_turtle.pyo
16.075 KB
10 Apr 2024 4.58 AM
root / root
0644
test_typechecks.py
3.092 KB
10 Apr 2024 4.58 AM
root / root
0644
test_typechecks.pyc
5.115 KB
10 Apr 2024 4.58 AM
root / root
0644
test_typechecks.pyo
5.115 KB
10 Apr 2024 4.58 AM
root / root
0644
test_types.py
29.026 KB
10 Apr 2024 4.58 AM
root / root
0644
test_types.pyc
25.297 KB
10 Apr 2024 4.58 AM
root / root
0644
test_types.pyo
25.072 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ucn.py
5.981 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ucn.pyc
6.289 KB
10 Apr 2024 4.58 AM
root / root
0644
test_ucn.pyo
6.289 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unary.py
1.815 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unary.pyc
2.754 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unary.pyo
2.754 KB
10 Apr 2024 4.58 AM
root / root
0644
test_undocumented_details.py
1.142 KB
10 Apr 2024 4.58 AM
root / root
0644
test_undocumented_details.pyc
2.026 KB
10 Apr 2024 4.58 AM
root / root
0644
test_undocumented_details.pyo
2.026 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unicode.py
82.079 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unicode.pyc
67.562 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unicode.pyo
67.562 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unicode_file.py
8.22 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unicode_file.pyc
5.74 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unicode_file.pyo
5.74 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unicodedata.py
12.324 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unicodedata.pyc
12.23 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unicodedata.pyo
12.23 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unittest.py
0.197 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unittest.pyc
0.505 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unittest.pyo
0.505 KB
10 Apr 2024 4.58 AM
root / root
0644
test_univnewlines.py
3.983 KB
10 Apr 2024 4.58 AM
root / root
0644
test_univnewlines.pyc
5.333 KB
10 Apr 2024 4.58 AM
root / root
0644
test_univnewlines.pyo
5.333 KB
10 Apr 2024 4.58 AM
root / root
0644
test_univnewlines2k.py
3.758 KB
10 Apr 2024 4.58 AM
root / root
0644
test_univnewlines2k.pyc
5.24 KB
10 Apr 2024 4.58 AM
root / root
0644
test_univnewlines2k.pyo
5.24 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unpack.py
2.496 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unpack.pyc
2.794 KB
10 Apr 2024 4.58 AM
root / root
0644
test_unpack.pyo
2.794 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllib.py
46.788 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllib.pyc
43.856 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllib.pyo
43.805 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllib2.py
58.219 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllib2.pyc
56.535 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllib2.pyo
56.372 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllib2_localnet.py
24.878 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllib2_localnet.pyc
25.918 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllib2_localnet.pyo
25.854 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllib2net.py
12.22 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllib2net.pyc
9.992 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllib2net.pyo
9.992 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllibnet.py
9.745 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllibnet.pyc
10.234 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urllibnet.pyo
10.234 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urlparse.py
45.831 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urlparse.pyc
37.813 KB
10 Apr 2024 4.58 AM
root / root
0644
test_urlparse.pyo
37.813 KB
10 Apr 2024 4.58 AM
root / root
0644
test_userdict.py
12.003 KB
10 Apr 2024 4.58 AM
root / root
0644
test_userdict.pyc
11.586 KB
10 Apr 2024 4.58 AM
root / root
0644
test_userdict.pyo
11.586 KB
10 Apr 2024 4.58 AM
root / root
0644
test_userlist.py
1.85 KB
10 Apr 2024 4.58 AM
root / root
0644
test_userlist.pyc
3.216 KB
10 Apr 2024 4.58 AM
root / root
0644
test_userlist.pyo
3.216 KB
10 Apr 2024 4.58 AM
root / root
0644
test_userstring.py
4.733 KB
10 Apr 2024 4.58 AM
root / root
0644
test_userstring.pyc
5.331 KB
10 Apr 2024 4.58 AM
root / root
0644
test_userstring.pyo
5.331 KB
10 Apr 2024 4.58 AM
root / root
0644
test_uu.py
5.569 KB
10 Apr 2024 4.58 AM
root / root
0644
test_uu.pyc
6.771 KB
10 Apr 2024 4.58 AM
root / root
0644
test_uu.pyo
6.771 KB
10 Apr 2024 4.58 AM
root / root
0644
test_uuid.py
22.952 KB
10 Apr 2024 4.58 AM
root / root
0644
test_uuid.pyc
26.169 KB
10 Apr 2024 4.58 AM
root / root
0644
test_uuid.pyo
26.169 KB
10 Apr 2024 4.58 AM
root / root
0644
test_wait3.py
1.037 KB
10 Apr 2024 4.58 AM
root / root
0644
test_wait3.pyc
1.522 KB
10 Apr 2024 4.58 AM
root / root
0644
test_wait3.pyo
1.522 KB
10 Apr 2024 4.58 AM
root / root
0644
test_wait4.py
1.118 KB
10 Apr 2024 4.58 AM
root / root
0644
test_wait4.pyc
1.443 KB
10 Apr 2024 4.58 AM
root / root
0644
test_wait4.pyo
1.443 KB
10 Apr 2024 4.58 AM
root / root
0644
test_warnings.py
37.531 KB
10 Apr 2024 4.58 AM
root / root
0644
test_warnings.pyc
32.756 KB
10 Apr 2024 4.58 AM
root / root
0644
test_warnings.pyo
32.737 KB
10 Apr 2024 4.58 AM
root / root
0644
test_wave.py
4.515 KB
10 Apr 2024 4.58 AM
root / root
0644
test_wave.pyc
5.443 KB
10 Apr 2024 4.58 AM
root / root
0644
test_wave.pyo
5.443 KB
10 Apr 2024 4.58 AM
root / root
0644
test_weakref.py
52.487 KB
10 Apr 2024 4.58 AM
root / root
0644
test_weakref.pyc
53.01 KB
10 Apr 2024 4.58 AM
root / root
0644
test_weakref.pyo
53.01 KB
10 Apr 2024 4.58 AM
root / root
0644
test_weakset.py
15.289 KB
10 Apr 2024 4.58 AM
root / root
0644
test_weakset.pyc
19.079 KB
10 Apr 2024 4.58 AM
root / root
0644
test_weakset.pyo
19.079 KB
10 Apr 2024 4.58 AM
root / root
0644
test_whichdb.py
1.734 KB
10 Apr 2024 4.58 AM
root / root
0644
test_whichdb.pyc
2.215 KB
10 Apr 2024 4.58 AM
root / root
0644
test_whichdb.pyo
2.215 KB
10 Apr 2024 4.58 AM
root / root
0644
test_winreg.py
20.344 KB
10 Apr 2024 4.58 AM
root / root
0644
test_winreg.pyc
15.319 KB
10 Apr 2024 4.58 AM
root / root
0644
test_winreg.pyo
15.319 KB
10 Apr 2024 4.58 AM
root / root
0644
test_winsound.py
3.575 KB
10 Apr 2024 4.58 AM
root / root
0644
test_winsound.pyc
5.367 KB
10 Apr 2024 4.58 AM
root / root
0644
test_winsound.pyo
5.367 KB
10 Apr 2024 4.58 AM
root / root
0644
test_with.py
25.798 KB
10 Apr 2024 4.58 AM
root / root
0644
test_with.pyc
34.272 KB
10 Apr 2024 4.58 AM
root / root
0644
test_with.pyo
34.272 KB
10 Apr 2024 4.58 AM
root / root
0644
test_wsgiref.py
20.37 KB
10 Apr 2024 4.58 AM
root / root
0644
test_wsgiref.pyc
23.461 KB
10 Apr 2024 4.58 AM
root / root
0644
test_wsgiref.pyo
23.461 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xdrlib.py
2.296 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xdrlib.pyc
3.527 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xdrlib.pyo
3.527 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xml_etree.py
97.721 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xml_etree.pyc
99.258 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xml_etree.pyo
99.258 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xml_etree_c.py
2.685 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xml_etree_c.pyc
2.951 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xml_etree_c.pyo
2.951 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xmllib.py
1.267 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xmllib.pyc
2.112 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xmllib.pyo
2.112 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xmlrpc.py
42.808 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xmlrpc.pyc
44.932 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xmlrpc.pyo
44.932 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xpickle.py
8.083 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xpickle.pyc
8.474 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xpickle.pyo
8.474 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xrange.py
7.642 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xrange.pyc
7 KB
10 Apr 2024 4.58 AM
root / root
0644
test_xrange.pyo
7 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zipfile.py
73.162 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zipfile.pyc
69.847 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zipfile.pyo
69.847 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zipfile64.py
5.93 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zipfile64.pyc
5.465 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zipfile64.pyo
5.465 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zipimport.py
16.423 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zipimport.pyc
16.609 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zipimport.pyo
16.609 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zipimport_support.py
10.596 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zipimport_support.pyc
7.127 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zipimport_support.pyo
7.065 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zlib.py
28.84 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zlib.pyc
27.87 KB
10 Apr 2024 4.58 AM
root / root
0644
test_zlib.pyo
27.87 KB
10 Apr 2024 4.58 AM
root / root
0644
testall.py
0.268 KB
10 Apr 2024 4.58 AM
root / root
0644
testall.pyc
0.383 KB
10 Apr 2024 4.58 AM
root / root
0644
testall.pyo
0.383 KB
10 Apr 2024 4.58 AM
root / root
0644
testcodec.py
1.022 KB
10 Apr 2024 4.58 AM
root / root
0644
testcodec.pyc
1.68 KB
10 Apr 2024 4.58 AM
root / root
0644
testcodec.pyo
1.68 KB
10 Apr 2024 4.58 AM
root / root
0644
testimg.uue
70.666 KB
10 Apr 2024 4.58 AM
root / root
0644
testimgr.uue
70.67 KB
10 Apr 2024 4.58 AM
root / root
0644
testrgb.uue
58.63 KB
10 Apr 2024 4.58 AM
root / root
0644
testtar.tar
275 KB
10 Apr 2024 4.58 AM
root / root
0644
tf_inherit_check.py
0.567 KB
10 Apr 2024 4.58 AM
root / root
0644
tf_inherit_check.pyc
0.529 KB
10 Apr 2024 4.58 AM
root / root
0644
tf_inherit_check.pyo
0.529 KB
10 Apr 2024 4.58 AM
root / root
0644
threaded_import_hangers.py
1.377 KB
10 Apr 2024 4.58 AM
root / root
0644
threaded_import_hangers.pyc
1.219 KB
10 Apr 2024 4.58 AM
root / root
0644
threaded_import_hangers.pyo
1.219 KB
10 Apr 2024 4.58 AM
root / root
0644
time_hashlib.py
2.789 KB
10 Apr 2024 4.58 AM
root / root
0644
time_hashlib.pyc
3.188 KB
10 Apr 2024 4.58 AM
root / root
0644
time_hashlib.pyo
3.188 KB
10 Apr 2024 4.58 AM
root / root
0644
tokenize_tests.txt
2.387 KB
10 Apr 2024 4.58 AM
root / root
0644
warning_tests.py
0.234 KB
10 Apr 2024 4.58 AM
root / root
0644
warning_tests.pyc
0.522 KB
10 Apr 2024 4.58 AM
root / root
0644
warning_tests.pyo
0.522 KB
10 Apr 2024 4.58 AM
root / root
0644
win_console_handler.py
1.386 KB
10 Apr 2024 4.58 AM
root / root
0644
win_console_handler.pyc
1.42 KB
10 Apr 2024 4.58 AM
root / root
0644
win_console_handler.pyo
1.42 KB
10 Apr 2024 4.58 AM
root / root
0644
xmltests.py
0.485 KB
10 Apr 2024 4.58 AM
root / root
0644
xmltests.pyc
0.735 KB
10 Apr 2024 4.58 AM
root / root
0644
xmltests.pyo
0.735 KB
10 Apr 2024 4.58 AM
root / root
0644
zipdir.zip
0.365 KB
10 Apr 2024 4.58 AM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF