Python pip.utils.deprecation 模块,DEPRECATIONS 实例源码

我们从Python开源项目中,提取了以下10个代码示例,用于说明如何使用pip.utils.deprecation.DEPRECATIONS

项目:isni-reconcile    作者:cmh2166    | 项目源码 | 文件源码
def main(args=None):
    if args is None:
        args = sys.argv[1:]

    # Enable our Deprecation Warnings
    for deprecation_warning in deprecation.DEPRECATIONS:
        warnings.simplefilter("default", deprecation_warning)

    # Configure our deprecation warnings to be sent through loggers
    deprecation.install_warning_logger()

    autocomplete()

    try:
        cmd_name, cmd_args = parseopts(args)
    except PipError as exc:
        sys.stderr.write("ERROR: %s" % exc)
        sys.stderr.write(os.linesep)
        sys.exit(1)

    command = commands_dict[cmd_name](isolated=check_isolated(cmd_args))
    return command.main(cmd_args)


# ###########################################################
# # Writing freeze files
项目:chalktalk_docs    作者:loremIpsum1771    | 项目源码 | 文件源码
def main(args=None):
    if args is None:
        args = sys.argv[1:]

    # Enable our Deprecation Warnings
    for deprecation_warning in deprecation.DEPRECATIONS:
        warnings.simplefilter("default", deprecation_warning)

    # Configure our deprecation warnings to be sent through loggers
    deprecation.install_warning_logger()

    autocomplete()

    try:
        cmd_name, cmd_args = parseopts(args)
    except PipError as exc:
        sys.stderr.write("ERROR: %s" % exc)
        sys.stderr.write(os.linesep)
        sys.exit(1)

    command = commands_dict[cmd_name](isolated=check_isolated(cmd_args))
    return command.main(cmd_args)


# ###########################################################
# # Writing freeze files
项目:QA4LOV    作者:gatemezing    | 项目源码 | 文件源码
def main(args=None):
    if args is None:
        args = sys.argv[1:]

    # Enable our Deprecation Warnings
    for deprecation_warning in deprecation.DEPRECATIONS:
        warnings.simplefilter("default", deprecation_warning)

    # Configure our deprecation warnings to be sent through loggers
    deprecation.install_warning_logger()

    autocomplete()

    try:
        cmd_name, cmd_args = parseopts(args)
    except PipError as exc:
        sys.stderr.write("ERROR: %s" % exc)
        sys.stderr.write(os.linesep)
        sys.exit(1)

    command = commands_dict[cmd_name](isolated=check_isolated(cmd_args))
    return command.main(cmd_args)


# ###########################################################
# # Writing freeze files
项目:compatify    作者:hatooku    | 项目源码 | 文件源码
def main(args=None):
    if args is None:
        args = sys.argv[1:]

    # Enable our Deprecation Warnings
    for deprecation_warning in deprecation.DEPRECATIONS:
        warnings.simplefilter("default", deprecation_warning)

    # Configure our deprecation warnings to be sent through loggers
    deprecation.install_warning_logger()

    autocomplete()

    try:
        cmd_name, cmd_args = parseopts(args)
    except PipError as exc:
        sys.stderr.write("ERROR: %s" % exc)
        sys.stderr.write(os.linesep)
        sys.exit(1)

    command = commands_dict[cmd_name](isolated=check_isolated(cmd_args))
    return command.main(cmd_args)


# ###########################################################
# # Writing freeze files
项目:compatify    作者:hatooku    | 项目源码 | 文件源码
def main(args=None):
    if args is None:
        args = sys.argv[1:]

    # Enable our Deprecation Warnings
    for deprecation_warning in deprecation.DEPRECATIONS:
        warnings.simplefilter("default", deprecation_warning)

    # Configure our deprecation warnings to be sent through loggers
    deprecation.install_warning_logger()

    autocomplete()

    try:
        cmd_name, cmd_args = parseopts(args)
    except PipError as exc:
        sys.stderr.write("ERROR: %s" % exc)
        sys.stderr.write(os.linesep)
        sys.exit(1)

    command = commands_dict[cmd_name](isolated=check_isolated(cmd_args))
    return command.main(cmd_args)


# ###########################################################
# # Writing freeze files
项目:ropi    作者:ThumbGen    | 项目源码 | 文件源码
def main(args=None):
    if args is None:
        args = sys.argv[1:]

    # Enable our Deprecation Warnings
    for deprecation_warning in deprecation.DEPRECATIONS:
        warnings.simplefilter("default", deprecation_warning)

    # Configure our deprecation warnings to be sent through loggers
    deprecation.install_warning_logger()

    autocomplete()

    try:
        cmd_name, cmd_args = parseopts(args)
    except PipError as exc:
        sys.stderr.write("ERROR: %s" % exc)
        sys.stderr.write(os.linesep)
        sys.exit(1)

    command = commands_dict[cmd_name](isolated=check_isolated(cmd_args))
    return command.main(cmd_args)


# ###########################################################
# # Writing freeze files
项目:python-flask-security    作者:weinbergdavid    | 项目源码 | 文件源码
def main(args=None):
    if args is None:
        args = sys.argv[1:]

    # Enable our Deprecation Warnings
    for deprecation_warning in deprecation.DEPRECATIONS:
        warnings.simplefilter("default", deprecation_warning)

    # Configure our deprecation warnings to be sent through loggers
    deprecation.install_warning_logger()

    autocomplete()

    try:
        cmd_name, cmd_args = parseopts(args)
    except PipError as exc:
        sys.stderr.write("ERROR: %s" % exc)
        sys.stderr.write(os.linesep)
        sys.exit(1)

    command = commands_dict[cmd_name](isolated=check_isolated(cmd_args))
    return command.main(cmd_args)


# ###########################################################
# # Writing freeze files
项目:facebook-face-recognition    作者:mathur    | 项目源码 | 文件源码
def main(args=None):
    if args is None:
        args = sys.argv[1:]

    # Enable our Deprecation Warnings
    for deprecation_warning in deprecation.DEPRECATIONS:
        warnings.simplefilter("default", deprecation_warning)

    # Configure our deprecation warnings to be sent through loggers
    deprecation.install_warning_logger()

    autocomplete()

    try:
        cmd_name, cmd_args = parseopts(args)
    except PipError as exc:
        sys.stderr.write("ERROR: %s" % exc)
        sys.stderr.write(os.linesep)
        sys.exit(1)

    command = commands_dict[cmd_name](isolated=check_isolated(cmd_args))
    return command.main(cmd_args)


# ###########################################################
# # Writing freeze files
项目:Hawkeye    作者:tozhengxq    | 项目源码 | 文件源码
def main(args=None):
    if args is None:
        args = sys.argv[1:]

    # Enable our Deprecation Warnings
    for deprecation_warning in deprecation.DEPRECATIONS:
        warnings.simplefilter("default", deprecation_warning)

    # Configure our deprecation warnings to be sent through loggers
    deprecation.install_warning_logger()

    autocomplete()

    try:
        cmd_name, cmd_args = parseopts(args)
    except PipError as exc:
        sys.stderr.write("ERROR: %s" % exc)
        sys.stderr.write(os.linesep)
        sys.exit(1)

    command = commands_dict[cmd_name](isolated=check_isolated(cmd_args))
    return command.main(cmd_args)


# ###########################################################
# # Writing freeze files
项目:tf_aws_ecs_instance_draining_on_scale_in    作者:terraform-community-modules    | 项目源码 | 文件源码
def main(args=None):
    if args is None:
        args = sys.argv[1:]

    # Enable our Deprecation Warnings
    for deprecation_warning in deprecation.DEPRECATIONS:
        warnings.simplefilter("default", deprecation_warning)

    # Configure our deprecation warnings to be sent through loggers
    deprecation.install_warning_logger()

    autocomplete()

    try:
        cmd_name, cmd_args = parseopts(args)
    except PipError as exc:
        sys.stderr.write("ERROR: %s" % exc)
        sys.stderr.write(os.linesep)
        sys.exit(1)

    command = commands_dict[cmd_name](isolated=check_isolated(cmd_args))
    return command.main(cmd_args)


# ###########################################################
# # Writing freeze files