py2docfx 0.1.15.dev2025736__py3-none-any.whl → 0.1.15.dev2038852__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py2docfx/docfx_yaml/process_doctree.py +34 -21
- py2docfx/docfx_yaml/tests/test_method_arguments.py +7 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_core_metadata.py +21 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/ccompiler.py +5 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/__init__.py +27 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build.py +1 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_clib.py +1 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_ext.py +1 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/config.py +0 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install.py +8 -17
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compat/numpy.py +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +8 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +15 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/dist.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/sysconfig.py +0 -10
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +60 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/unixccompiler.py +6 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/util.py +7 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_normalization.py +29 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/__init__.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/_bdist_wheel.py +613 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/_setuptools_logging.py +2 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/bdist_wheel.py +25 -594
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/cli/__init__.py +6 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/cli/convert.py +282 -223
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/macosx_libfile.py +22 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/metadata.py +16 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/util.py +0 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/wheelfile.py +40 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/bdist_wheel.py +6 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_apply_pyprojecttoml.py +48 -11
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/extra_validations.py +31 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_validations.py +222 -129
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/formats.py +30 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/dist.py +115 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/msvc.py +12 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_apply_pyprojecttoml.py +246 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_bdist_wheel.py +93 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_meta.py +17 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_core_metadata.py +45 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_egg_info.py +24 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_sdist.py +13 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/any_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/api_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/compiler/plugin_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor_database.py +22 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor_pb2.py +82 -35
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/duration_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/empty_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/field_mask_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/builder.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/containers.py +13 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/decoder.py +62 -115
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/python_edition_defaults.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/python_message.py +15 -18
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/testing_refleaks.py +4 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/type_checkers.py +5 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/well_known_types.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/json_format.py +25 -9
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/message.py +26 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/message_factory.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/proto.py +38 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/proto_text.py +129 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/reflection.py +0 -49
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/runtime_version.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/source_context_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/struct_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/symbol_database.py +0 -18
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/text_format.py +8 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/timestamp_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/type_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/unknown_fields.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/wrappers_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/msal/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/msal/application.py +51 -17
- py2docfx/venv/venv1/Lib/site-packages/msal/broker.py +18 -4
- py2docfx/venv/venv1/Lib/site-packages/msal/cloudshell.py +5 -1
- py2docfx/venv/venv1/Lib/site-packages/msal/managed_identity.py +5 -4
- py2docfx/venv/venv1/Lib/site-packages/msal/sku.py +6 -0
- py2docfx/venv/venv1/Lib/site-packages/msal/token_cache.py +31 -10
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/__init__.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/cache_lock.py +4 -1
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/filelock.py +62 -0
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/libsecret.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/token_cache.py +7 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_core_metadata.py +21 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/ccompiler.py +5 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/__init__.py +27 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build.py +1 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_clib.py +1 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_ext.py +1 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/config.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install.py +8 -17
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compat/numpy.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +8 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +15 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/dist.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/sysconfig.py +0 -10
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +60 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/unixccompiler.py +6 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/util.py +7 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_normalization.py +29 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/_bdist_wheel.py +613 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/_setuptools_logging.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/bdist_wheel.py +25 -594
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/cli/__init__.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/cli/convert.py +282 -223
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/macosx_libfile.py +22 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/metadata.py +16 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/util.py +0 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/wheelfile.py +40 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/bdist_wheel.py +6 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_apply_pyprojecttoml.py +48 -11
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/extra_validations.py +31 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_validations.py +222 -129
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/formats.py +30 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/dist.py +115 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/msvc.py +12 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_apply_pyprojecttoml.py +246 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_bdist_wheel.py +93 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_meta.py +17 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_core_metadata.py +45 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_egg_info.py +24 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_sdist.py +13 -1
- {py2docfx-0.1.15.dev2025736.dist-info → py2docfx-0.1.15.dev2038852.dist-info}/METADATA +1 -1
- {py2docfx-0.1.15.dev2025736.dist-info → py2docfx-0.1.15.dev2038852.dist-info}/RECORD +136 -593
- py2docfx/docfx_yaml/tests/test_process_doctree.py +0 -120
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/__init__.py +0 -82
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/ado_consts.py +0 -283
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/adodbapi.py +0 -1153
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/apibase.py +0 -723
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_print.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_table_names.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/xls_read.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/xls_write.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/is64bit.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/process_connect_string.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/schema_table.py +0 -16
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/setup.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitest.py +0 -1547
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +0 -184
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/dbapi20.py +0 -879
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/is64bit.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/setuptestframework.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/test_adodbapi_dbapi20.py +0 -195
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/tryconnection.py +0 -30
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/_parameterized.py +0 -420
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/service.py +0 -213
- py2docfx/venv/venv1/Lib/site-packages/isapi/__init__.py +0 -39
- py2docfx/venv/venv1/Lib/site-packages/isapi/install.py +0 -809
- py2docfx/venv/venv1/Lib/site-packages/isapi/isapicon.py +0 -121
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/advanced.py +0 -218
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector.py +0 -116
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_asynch.py +0 -85
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_with_filter.py +0 -162
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/test.py +0 -195
- py2docfx/venv/venv1/Lib/site-packages/isapi/simple.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/isapi/test/extension_simple.py +0 -114
- py2docfx/venv/venv1/Lib/site-packages/isapi/threaded_extension.py +0 -191
- py2docfx/venv/venv1/Lib/site-packages/portalocker/__about__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/portalocker/__init__.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/portalocker/__main__.py +0 -122
- py2docfx/venv/venv1/Lib/site-packages/portalocker/constants.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/portalocker/exceptions.py +0 -27
- py2docfx/venv/venv1/Lib/site-packages/portalocker/portalocker.py +0 -154
- py2docfx/venv/venv1/Lib/site-packages/portalocker/redis.py +0 -236
- py2docfx/venv/venv1/Lib/site-packages/portalocker/utils.py +0 -569
- py2docfx/venv/venv1/Lib/site-packages/pythoncom.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py +0 -258
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/customprint.py +0 -183
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/demoutils.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/dlgappdemo.py +0 -51
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/dojobapp.py +0 -71
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/helloapp.py +0 -53
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/cmdserver.py +0 -113
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/createwin.py +0 -114
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/demoutils.py +0 -65
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dibdemo.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dlgtest.py +0 -145
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dyndlg.py +0 -104
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/fontdemo.py +0 -85
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/guidemo.py +0 -53
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/hiertest.py +0 -138
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/menutest.py +0 -13
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/objdoc.py +0 -57
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/demoutils.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/flash.py +0 -95
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/msoffice.py +0 -159
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py +0 -132
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxtest.py +0 -243
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/webbrowser.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/openGLDemo.py +0 -415
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/progressbar.py +0 -105
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/sliderdemo.py +0 -76
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/splittst.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/threadedgui.py +0 -189
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/toolbar.py +0 -105
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/__init__.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/__init__.py +0 -133
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/configui.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgcon.py +0 -31
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgpyapp.py +0 -48
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/debugger.py +0 -1097
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/fail.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/ideoptions.py +0 -136
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/list.py +0 -146
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/login.py +0 -155
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/status.py +0 -242
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/DockingBar.py +0 -676
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/app.py +0 -411
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/bitmap.py +0 -168
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/cmdline.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dbgcommands.py +0 -188
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dlgappcore.py +0 -76
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/ModuleBrowser.py +0 -235
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/__init__.py +0 -105
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/color/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/color/coloreditor.py +0 -646
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/configui.py +0 -299
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/document.py +0 -379
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/editor.py +0 -511
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/frame.py +0 -74
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/template.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py +0 -104
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/help.py +0 -173
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/interact.py +0 -995
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py +0 -552
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpydde.py +0 -65
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/scriptutils.py +0 -684
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py +0 -749
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/startup.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/stdin.py +0 -172
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/toolmenu.py +0 -279
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/window.py +0 -14
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/winout.py +0 -589
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoExpand.py +0 -95
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoIndent.py +0 -536
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/CallTips.py +0 -216
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/FormatParagraph.py +0 -166
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/IdleHistory.py +0 -87
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/PyParse.py +0 -585
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/activex.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/afxres.py +0 -501
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/dialog.py +0 -277
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/docview.py +0 -151
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/object.py +0 -66
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/thread.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/window.py +0 -50
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/IDLEenvironment.py +0 -593
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/bindings.py +0 -180
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/config.py +0 -363
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/configui.py +0 -291
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/control.py +0 -565
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/document.py +0 -312
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/find.py +0 -511
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/formatter.py +0 -704
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/keycodes.py +0 -190
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py +0 -3083
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/view.py +0 -841
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/TraceCollector.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browseProjects.py +0 -323
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browser.py +0 -494
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/hierlist.py +0 -353
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/regedit.py +0 -382
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/regpy.py +0 -80
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/BackupRead_BackupWrite.py +0 -119
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/BackupSeek_streamheaders.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/CopyFileEx.py +0 -57
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/CreateFileTransacted_MiniVersion.py +0 -122
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtFormatMessage.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_pull.py +0 -28
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +0 -32
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/FileSecurityTest.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/GetSaveFileName.py +0 -43
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/NetValidatePasswordPolicy.py +0 -127
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/OpenEncryptedFileRaw.py +0 -66
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/RegCreateKeyTransacted.py +0 -60
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/RegRestoreKey.py +0 -71
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/SystemParametersInfo.py +0 -210
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/c_extension/setup.py +0 -26
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeclient.py +0 -18
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeserver.py +0 -42
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/desktopmanager.py +0 -246
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/eventLogDemo.py +0 -143
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/getfilever.py +0 -33
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/mmapfile_demo.py +0 -101
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/cat.py +0 -17
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/runproc.py +0 -114
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/print_desktop.py +0 -113
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/rastest.py +0 -166
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +0 -110
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/account_rights.py +0 -49
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/explicit_entries.py +0 -170
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/get_policy_info.py +0 -39
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/list_rights.py +0 -35
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/localized_names.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/lsaregevent.py +0 -14
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/lsastore.py +0 -12
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/query_information.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/regsave_sa.py +0 -61
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/regsecurity.py +0 -36
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sa_inherit.py +0 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/security_enums.py +0 -336
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_audit.py +0 -106
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_owner.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_policy_info.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +0 -134
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setnamedsecurityinfo.py +0 -131
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +0 -131
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +0 -102
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +0 -158
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +0 -199
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/validate_password.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/nativePipeTestService.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestService.py +0 -185
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +0 -158
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/serviceEvents.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/timer_demo.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboardDemo.py +0 -155
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboard_bitmapdemo.py +0 -117
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32comport_demo.py +0 -174
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32console_demo.py +0 -132
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32cred_demo.py +0 -82
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32fileDemo.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_demo.py +0 -177
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +0 -106
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_dialog.py +0 -445
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_menu.py +0 -464
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_taskbar.py +0 -136
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32netdemo.py +0 -272
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32rcparser_demo.py +0 -86
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32servicedemo.py +0 -23
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +0 -123
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/winnetwk.py +0 -100
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/winprocess.py +0 -230
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/_win32verstamp_pywin32ctypes.py +0 -164
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/afxres.py +0 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/commctrl.py +0 -1551
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/mmsystem.py +0 -956
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/netbios.py +0 -293
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/ntsecuritycon.py +0 -731
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_bootstrap.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_testutil.py +0 -291
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywintypes.py +0 -124
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/rasutil.py +0 -40
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regcheck.py +0 -161
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regutil.py +0 -395
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspi.py +0 -413
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspicon.py +0 -477
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win2kras.py +0 -14
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32con.py +0 -5064
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32cryptcon.py +0 -1922
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32evtlogutil.py +0 -225
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32gui_struct.py +0 -957
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32inetcon.py +0 -1086
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32netcon.py +0 -627
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhquery.py +0 -570
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhutil.py +0 -212
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32rcparser.py +0 -674
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32serviceutil.py +0 -1073
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32timezone.py +0 -1201
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32traceutil.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32verstamp.py +0 -235
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winerror.py +0 -7362
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winioctlcon.py +0 -1079
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winnt.py +0 -1347
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winperf.py +0 -236
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winxptheme.py +0 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/ControlService.py +0 -594
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/BrandProject.py +0 -97
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/bulkstamp.py +0 -156
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/vssutil.py +0 -201
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/backupEventLog.py +0 -46
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/h2py.py +0 -194
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/killProcName.py +0 -62
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_postinstall.py +0 -733
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_testall.py +0 -120
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/rasutil.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/regsetup.py +0 -607
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/setup_d.py +0 -111
- py2docfx/venv/venv1/Lib/site-packages/win32/test/handles.py +0 -175
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_clipboard.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_exceptions.py +0 -213
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_odbc.py +0 -264
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_pywintypes.py +0 -111
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_security.py +0 -166
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_sspi.py +0 -229
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32api.py +0 -273
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32clipboard.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32cred.py +0 -91
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32crypt.py +0 -144
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32event.py +0 -119
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32file.py +0 -1096
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32gui.py +0 -227
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32guistruct.py +0 -333
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32inet.py +0 -108
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32net.py +0 -23
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32pipe.py +0 -148
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32print.py +0 -24
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32profile.py +0 -19
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32rcparser.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32timezone.py +0 -16
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32trace.py +0 -366
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32ts.py +0 -19
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32wnet.py +0 -174
- py2docfx/venv/venv1/Lib/site-packages/win32/test/testall.py +0 -223
- py2docfx/venv/venv1/Lib/site-packages/win32/winxpgui.py +0 -13
- py2docfx/venv/venv1/Lib/site-packages/win32com/__init__.py +0 -134
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/CLSIDToClass.py +0 -60
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/__init__.py +0 -717
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/build.py +0 -771
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/combrowse.py +0 -604
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/connect.py +0 -48
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/dynamic.py +0 -699
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/gencache.py +0 -825
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/genpy.py +0 -1350
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/makepy.py +0 -453
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/selecttlb.py +0 -182
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/tlbrowse.py +0 -277
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/util.py +0 -103
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/connect.py +0 -96
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/dump_clipboard.py +0 -74
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/eventsApartmentThreaded.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/eventsFreeThreaded.py +0 -92
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelAddin.py +0 -169
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelRTDServer.py +0 -434
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/iebutton.py +0 -214
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/ietoolbar.py +0 -368
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/outlookAddin.py +0 -135
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/trybag.py +0 -78
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegw.py +0 -618
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwenum.py +0 -331
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwparse.py +0 -1017
- py2docfx/venv/venv1/Lib/site-packages/win32com/olectl.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/connect.py +0 -85
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/dispatcher.py +0 -239
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/exception.py +0 -99
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/factory.py +0 -26
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/localserver.py +0 -53
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/policy.py +0 -803
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/register.py +0 -677
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/util.py +0 -229
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/PythonTools.py +0 -47
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/dictionary.py +0 -133
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/interp.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/perfmon.py +0 -36
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/test_pycomtest.py +0 -181
- py2docfx/venv/venv1/Lib/site-packages/win32com/storagecon.py +0 -142
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/GenTestScripts.py +0 -95
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/daodump.py +0 -88
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/errorSemantics.py +0 -243
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/pippo_server.py +0 -96
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/policySemantics.py +0 -115
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testADOEvents.py +0 -100
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAXScript.py +0 -44
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAccess.py +0 -185
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testArrays.py +0 -99
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testClipboard.py +0 -169
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testCollections.py +0 -159
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testConversionErrors.py +0 -35
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDCOM.py +0 -50
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDates.py +0 -74
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDictionary.py +0 -101
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDynamic.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExchange.py +0 -121
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExplorer.py +0 -139
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGIT.py +0 -142
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGatewayAddresses.py +0 -149
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testIterators.py +0 -140
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOffice.py +0 -184
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOfficeEvents.py +0 -138
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMarshal.py +0 -160
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPersist.py +0 -227
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPippo.py +0 -80
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPyComTest.py +0 -918
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testROT.py +0 -29
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testServers.py +0 -51
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testShell.py +0 -272
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testStorage.py +0 -88
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testStreams.py +0 -147
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testWMI.py +0 -18
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testall.py +0 -320
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testmakepy.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvb.py +0 -583
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvbscript_regexp.py +0 -40
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testxslt.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/util.py +0 -262
- py2docfx/venv/venv1/Lib/site-packages/win32com/universal.py +0 -224
- py2docfx/venv/venv1/Lib/site-packages/win32com/util.py +0 -35
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/__init__.py +0 -113
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/adsicon.py +0 -340
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/objectPicker.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/scp.py +0 -565
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/search.py +0 -151
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/test.py +0 -274
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/__init__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +0 -229
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +0 -219
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axcontrol/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/adb.py +0 -467
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/codecontainer.py +0 -279
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/contexts.py +0 -58
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/debugger.py +0 -238
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/documents.py +0 -135
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/dump.py +0 -57
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/expressions.py +0 -212
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/gateways.py +0 -583
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/stackframe.py +0 -178
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/util.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/asputil.py +0 -13
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/debug.py +0 -223
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/error.py +0 -262
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/framework.py +0 -1291
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pydumper.py +0 -78
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript.py +0 -438
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript_rexec.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +0 -103
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/axsite.py +0 -145
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/leakTest.py +0 -185
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost.py +0 -240
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/__init__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/show_all_jobs.py +0 -48
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/test_bits.py +0 -119
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/ds_record.py +0 -60
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/ds_test.py +0 -402
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/demo/filterDemo.py +0 -300
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/ifiltercon.py +0 -110
- py2docfx/venv/venv1/Lib/site-packages/win32comext/internet/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/internet/inetcon.py +0 -261
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/__init__.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/demos/mapisend.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/emsabtags.py +0 -875
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapitags.py +0 -1023
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapiutil.py +0 -211
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/pscon.py +0 -838
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/test/testpropsys.py +0 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IActiveDesktop.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +0 -179
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IShellLinkDataList.py +0 -67
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +0 -93
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IUniformResourceLocator.py +0 -56
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/browse_for_folder.py +0 -45
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/create_link.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/dump_link.py +0 -58
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/explorer_browser.py +0 -143
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +0 -125
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/context_menu.py +0 -122
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +0 -84
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +0 -188
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +0 -866
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +0 -81
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +0 -971
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/shellexecuteex.py +0 -19
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/viewstate.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/walk_shell_folders.py +0 -24
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/shellcon.py +0 -1615
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testSHFileOperation.py +0 -75
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testShellFolder.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testShellItem.py +0 -69
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/__init__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask.py +0 -66
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_1.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +0 -49
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_localsystem.py +0 -3
- py2docfx/venv/venv1/Scripts/pywin32_postinstall.py +0 -733
- py2docfx/venv/venv1/Scripts/pywin32_testall.py +0 -120
- {py2docfx-0.1.15.dev2025736.dist-info → py2docfx-0.1.15.dev2038852.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.15.dev2025736.dist-info → py2docfx-0.1.15.dev2038852.dist-info}/top_level.txt +0 -0
@@ -1,771 +0,0 @@
|
|
1
|
-
"""Contains knowledge to build a COM object definition.
|
2
|
-
|
3
|
-
This module is used by both the @dynamic@ and @makepy@ modules to build
|
4
|
-
all knowledge of a COM object.
|
5
|
-
|
6
|
-
This module contains classes which contain the actual knowledge of the object.
|
7
|
-
This include parameter and return type information, the COM dispid and CLSID, etc.
|
8
|
-
|
9
|
-
Other modules may use this information to generate .py files, use the information
|
10
|
-
dynamically, or possibly even generate .html documentation for objects.
|
11
|
-
"""
|
12
|
-
|
13
|
-
#
|
14
|
-
# NOTES: DispatchItem and MapEntry used by dynamic.py.
|
15
|
-
# the rest is used by makepy.py
|
16
|
-
#
|
17
|
-
# OleItem, DispatchItem, MapEntry, BuildCallList() is used by makepy
|
18
|
-
|
19
|
-
import builtins
|
20
|
-
import datetime
|
21
|
-
import string
|
22
|
-
from itertools import chain
|
23
|
-
from keyword import iskeyword
|
24
|
-
|
25
|
-
import pythoncom
|
26
|
-
import winerror
|
27
|
-
from pywintypes import TimeType
|
28
|
-
|
29
|
-
# It isn't really clear what the quoting rules are in a C/IDL string and
|
30
|
-
# literals like a quote char and backslashes makes life a little painful to
|
31
|
-
# always render the string perfectly - so just punt and fall-back to a repr()
|
32
|
-
_makeDocString = repr
|
33
|
-
|
34
|
-
|
35
|
-
class NotSupportedException(Exception):
|
36
|
-
pass # Raised when we can't support a param type.
|
37
|
-
|
38
|
-
|
39
|
-
DropIndirection = "DropIndirection"
|
40
|
-
|
41
|
-
NoTranslateTypes = [
|
42
|
-
pythoncom.VT_BOOL,
|
43
|
-
pythoncom.VT_CLSID,
|
44
|
-
pythoncom.VT_CY,
|
45
|
-
pythoncom.VT_DATE,
|
46
|
-
pythoncom.VT_DECIMAL,
|
47
|
-
pythoncom.VT_EMPTY,
|
48
|
-
pythoncom.VT_ERROR,
|
49
|
-
pythoncom.VT_FILETIME,
|
50
|
-
pythoncom.VT_HRESULT,
|
51
|
-
pythoncom.VT_I1,
|
52
|
-
pythoncom.VT_I2,
|
53
|
-
pythoncom.VT_I4,
|
54
|
-
pythoncom.VT_I8,
|
55
|
-
pythoncom.VT_INT,
|
56
|
-
pythoncom.VT_NULL,
|
57
|
-
pythoncom.VT_R4,
|
58
|
-
pythoncom.VT_R8,
|
59
|
-
pythoncom.VT_NULL,
|
60
|
-
pythoncom.VT_STREAM,
|
61
|
-
pythoncom.VT_UI1,
|
62
|
-
pythoncom.VT_UI2,
|
63
|
-
pythoncom.VT_UI4,
|
64
|
-
pythoncom.VT_UI8,
|
65
|
-
pythoncom.VT_UINT,
|
66
|
-
pythoncom.VT_VOID,
|
67
|
-
]
|
68
|
-
|
69
|
-
NoTranslateMap = set(NoTranslateTypes)
|
70
|
-
|
71
|
-
|
72
|
-
class MapEntry:
|
73
|
-
"Simple holder for named attibutes - items in a map."
|
74
|
-
|
75
|
-
def __init__(
|
76
|
-
self,
|
77
|
-
desc_or_id,
|
78
|
-
names=None,
|
79
|
-
doc=None,
|
80
|
-
resultCLSID=pythoncom.IID_NULL,
|
81
|
-
resultDoc=None,
|
82
|
-
hidden=0,
|
83
|
-
):
|
84
|
-
if isinstance(desc_or_id, int):
|
85
|
-
self.dispid = desc_or_id
|
86
|
-
self.desc = None
|
87
|
-
else:
|
88
|
-
self.dispid = desc_or_id[0]
|
89
|
-
self.desc = desc_or_id
|
90
|
-
|
91
|
-
self.names = names
|
92
|
-
self.doc = doc
|
93
|
-
self.resultCLSID = resultCLSID
|
94
|
-
self.resultDocumentation = resultDoc
|
95
|
-
self.wasProperty = (
|
96
|
-
0 # Have I been transformed into a function so I can pass args?
|
97
|
-
)
|
98
|
-
self.hidden = hidden
|
99
|
-
|
100
|
-
def __repr__(self):
|
101
|
-
return (
|
102
|
-
"MapEntry(dispid={s.dispid}, desc={s.desc}, names={s.names}, doc={s.doc!r}, "
|
103
|
-
"resultCLSID={s.resultCLSID}, resultDocumentation={s.resultDocumentation}, "
|
104
|
-
"wasProperty={s.wasProperty}, hidden={s.hidden}"
|
105
|
-
).format(s=self)
|
106
|
-
|
107
|
-
def GetResultCLSID(self):
|
108
|
-
rc = self.resultCLSID
|
109
|
-
if rc == pythoncom.IID_NULL:
|
110
|
-
return None
|
111
|
-
return rc
|
112
|
-
|
113
|
-
# Return a string, suitable for output - either "'{...}'" or "None"
|
114
|
-
def GetResultCLSIDStr(self):
|
115
|
-
rc = self.GetResultCLSID()
|
116
|
-
if rc is None:
|
117
|
-
return "None"
|
118
|
-
# Convert the IID object to a string in a string.
|
119
|
-
return f"'{rc}'"
|
120
|
-
|
121
|
-
def GetResultName(self):
|
122
|
-
if self.resultDocumentation is None:
|
123
|
-
return None
|
124
|
-
return self.resultDocumentation[0]
|
125
|
-
|
126
|
-
|
127
|
-
class OleItem:
|
128
|
-
typename = "OleItem"
|
129
|
-
|
130
|
-
def __init__(self, doc=None):
|
131
|
-
self.doc = doc
|
132
|
-
if self.doc:
|
133
|
-
self.python_name = MakePublicAttributeName(self.doc[0])
|
134
|
-
else:
|
135
|
-
self.python_name = None
|
136
|
-
self.bWritten = 0
|
137
|
-
self.bIsDispatch = 0
|
138
|
-
self.bIsSink = 0
|
139
|
-
self.clsid = None
|
140
|
-
self.co_class = None
|
141
|
-
|
142
|
-
|
143
|
-
class DispatchItem(OleItem):
|
144
|
-
typename = "DispatchItem"
|
145
|
-
|
146
|
-
def __init__(self, typeinfo=None, attr=None, doc=None, bForUser=1):
|
147
|
-
OleItem.__init__(self, doc)
|
148
|
-
self.propMap = {}
|
149
|
-
self.propMapGet = {}
|
150
|
-
self.propMapPut = {}
|
151
|
-
self.mapFuncs = {}
|
152
|
-
self.defaultDispatchName = None
|
153
|
-
self.hidden = 0
|
154
|
-
|
155
|
-
if typeinfo:
|
156
|
-
self.Build(typeinfo, attr, bForUser)
|
157
|
-
|
158
|
-
def _propMapPutCheck_(self, key, item):
|
159
|
-
ins, outs, opts = self.CountInOutOptArgs(item.desc[2])
|
160
|
-
if ins > 1: # if a Put property takes more than 1 arg:
|
161
|
-
if opts + 1 == ins or ins == item.desc[6] + 1:
|
162
|
-
newKey = "Set" + key
|
163
|
-
deleteExisting = 0 # This one is still OK
|
164
|
-
else:
|
165
|
-
deleteExisting = 1 # No good to us
|
166
|
-
if key in self.mapFuncs or key in self.propMapGet:
|
167
|
-
newKey = "Set" + key
|
168
|
-
else:
|
169
|
-
newKey = key
|
170
|
-
item.wasProperty = 1
|
171
|
-
self.mapFuncs[newKey] = item
|
172
|
-
if deleteExisting:
|
173
|
-
del self.propMapPut[key]
|
174
|
-
|
175
|
-
def _propMapGetCheck_(self, key, item):
|
176
|
-
ins, outs, opts = self.CountInOutOptArgs(item.desc[2])
|
177
|
-
if ins > 0: # if a Get property takes _any_ in args:
|
178
|
-
if item.desc[6] == ins or ins == opts:
|
179
|
-
newKey = "Get" + key
|
180
|
-
deleteExisting = 0 # This one is still OK
|
181
|
-
else:
|
182
|
-
deleteExisting = 1 # No good to us
|
183
|
-
if key in self.mapFuncs:
|
184
|
-
newKey = "Get" + key
|
185
|
-
else:
|
186
|
-
newKey = key
|
187
|
-
item.wasProperty = 1
|
188
|
-
self.mapFuncs[newKey] = item
|
189
|
-
if deleteExisting:
|
190
|
-
del self.propMapGet[key]
|
191
|
-
|
192
|
-
def _AddFunc_(self, typeinfo, fdesc, bForUser):
|
193
|
-
assert fdesc.desckind == pythoncom.DESCKIND_FUNCDESC
|
194
|
-
id = fdesc.memid
|
195
|
-
funcflags = fdesc.wFuncFlags
|
196
|
-
try:
|
197
|
-
names = typeinfo.GetNames(id)
|
198
|
-
name = names[0]
|
199
|
-
except pythoncom.ole_error:
|
200
|
-
name = ""
|
201
|
-
names = None
|
202
|
-
|
203
|
-
doc = None
|
204
|
-
try:
|
205
|
-
if bForUser:
|
206
|
-
doc = typeinfo.GetDocumentation(id)
|
207
|
-
except pythoncom.ole_error:
|
208
|
-
pass
|
209
|
-
|
210
|
-
if id == 0 and name:
|
211
|
-
self.defaultDispatchName = name
|
212
|
-
|
213
|
-
invkind = fdesc.invkind
|
214
|
-
|
215
|
-
# We need to translate any Alias', Enums, structs etc in result and args
|
216
|
-
typerepr, flag, defval = fdesc.rettype
|
217
|
-
# sys.stderr.write("%s result - %s -> " % (name, typerepr))
|
218
|
-
typerepr, resultCLSID, resultDoc = _ResolveType(typerepr, typeinfo)
|
219
|
-
# sys.stderr.write("%s\n" % (typerepr,))
|
220
|
-
fdesc.rettype = typerepr, flag, defval, resultCLSID
|
221
|
-
# Translate any Alias or Enums in argument list.
|
222
|
-
argList = []
|
223
|
-
for argDesc in fdesc.args:
|
224
|
-
typerepr, flag, defval = argDesc
|
225
|
-
# sys.stderr.write("%s arg - %s -> " % (name, typerepr))
|
226
|
-
arg_type, arg_clsid, arg_doc = _ResolveType(typerepr, typeinfo)
|
227
|
-
argDesc = arg_type, flag, defval, arg_clsid
|
228
|
-
# sys.stderr.write("%s\n" % (argDesc[0],))
|
229
|
-
argList.append(argDesc)
|
230
|
-
fdesc.args = tuple(argList)
|
231
|
-
|
232
|
-
hidden = (funcflags & pythoncom.FUNCFLAG_FHIDDEN) != 0
|
233
|
-
if invkind == pythoncom.INVOKE_PROPERTYGET:
|
234
|
-
map = self.propMapGet
|
235
|
-
# This is not the best solution, but I don't think there is
|
236
|
-
# one without specific "set" syntax.
|
237
|
-
# If there is a single PUT or PUTREF, it will function as a property.
|
238
|
-
# If there are both, then the PUT remains a property, and the PUTREF
|
239
|
-
# gets transformed into a function.
|
240
|
-
# (in vb, PUT=="obj=other_obj", PUTREF="set obj=other_obj
|
241
|
-
elif invkind in (pythoncom.INVOKE_PROPERTYPUT, pythoncom.INVOKE_PROPERTYPUTREF):
|
242
|
-
# Special case
|
243
|
-
existing = self.propMapPut.get(name, None)
|
244
|
-
if existing is not None:
|
245
|
-
if existing.desc[4] == pythoncom.INVOKE_PROPERTYPUT: # Keep this one
|
246
|
-
map = self.mapFuncs
|
247
|
-
name = "Set" + name
|
248
|
-
else: # Existing becomes a func.
|
249
|
-
existing.wasProperty = 1
|
250
|
-
self.mapFuncs["Set" + name] = existing
|
251
|
-
map = self.propMapPut # existing gets overwritten below.
|
252
|
-
else:
|
253
|
-
map = self.propMapPut # first time we've seen it.
|
254
|
-
|
255
|
-
elif invkind == pythoncom.INVOKE_FUNC:
|
256
|
-
map = self.mapFuncs
|
257
|
-
else:
|
258
|
-
map = None
|
259
|
-
if not map is None:
|
260
|
-
# if map.has_key(name):
|
261
|
-
# sys.stderr.write("Warning - overwriting existing method/attribute %s\n" % name)
|
262
|
-
map[name] = MapEntry(fdesc, names, doc, resultCLSID, resultDoc, hidden)
|
263
|
-
# any methods that can't be reached via DISPATCH we return None
|
264
|
-
# for, so dynamic dispatch doesn't see it.
|
265
|
-
if fdesc.funckind != pythoncom.FUNC_DISPATCH:
|
266
|
-
return None
|
267
|
-
return (name, map)
|
268
|
-
return None
|
269
|
-
|
270
|
-
def _AddVar_(self, typeinfo, vardesc, bForUser):
|
271
|
-
### need pythoncom.VARFLAG_FRESTRICTED ...
|
272
|
-
### then check it
|
273
|
-
assert vardesc.desckind == pythoncom.DESCKIND_VARDESC
|
274
|
-
|
275
|
-
if vardesc.varkind == pythoncom.VAR_DISPATCH:
|
276
|
-
id = vardesc.memid
|
277
|
-
names = typeinfo.GetNames(id)
|
278
|
-
# Translate any Alias or Enums in result.
|
279
|
-
typerepr, flags, defval = vardesc.elemdescVar
|
280
|
-
typerepr, resultCLSID, resultDoc = _ResolveType(typerepr, typeinfo)
|
281
|
-
vardesc.elemdescVar = typerepr, flags, defval
|
282
|
-
doc = None
|
283
|
-
try:
|
284
|
-
if bForUser:
|
285
|
-
doc = typeinfo.GetDocumentation(id)
|
286
|
-
except pythoncom.ole_error:
|
287
|
-
pass
|
288
|
-
|
289
|
-
# handle the enumerator specially
|
290
|
-
map = self.propMap
|
291
|
-
# Check if the element is hidden.
|
292
|
-
hidden = (vardesc.wVarFlags & 0x40) != 0 # VARFLAG_FHIDDEN
|
293
|
-
map[names[0]] = MapEntry(
|
294
|
-
vardesc, names, doc, resultCLSID, resultDoc, hidden
|
295
|
-
)
|
296
|
-
return (names[0], map)
|
297
|
-
else:
|
298
|
-
return None
|
299
|
-
|
300
|
-
def Build(self, typeinfo, attr, bForUser=1):
|
301
|
-
self.clsid = attr[0]
|
302
|
-
self.bIsDispatch = (attr.wTypeFlags & pythoncom.TYPEFLAG_FDISPATCHABLE) != 0
|
303
|
-
if typeinfo is None:
|
304
|
-
return
|
305
|
-
# Loop over all methods
|
306
|
-
for j in range(attr[6]):
|
307
|
-
fdesc = typeinfo.GetFuncDesc(j)
|
308
|
-
self._AddFunc_(typeinfo, fdesc, bForUser)
|
309
|
-
|
310
|
-
# Loop over all variables (ie, properties)
|
311
|
-
for j in range(attr[7]):
|
312
|
-
fdesc = typeinfo.GetVarDesc(j)
|
313
|
-
self._AddVar_(typeinfo, fdesc, bForUser)
|
314
|
-
|
315
|
-
# Now post-process the maps. For any "Get" or "Set" properties
|
316
|
-
# that have arguments, we must turn them into methods. If a method
|
317
|
-
# of the same name already exists, change the name.
|
318
|
-
for key, item in list(self.propMapGet.items()):
|
319
|
-
self._propMapGetCheck_(key, item)
|
320
|
-
|
321
|
-
for key, item in list(self.propMapPut.items()):
|
322
|
-
self._propMapPutCheck_(key, item)
|
323
|
-
|
324
|
-
def CountInOutOptArgs(self, argTuple):
|
325
|
-
"Return tuple counting in/outs/OPTS. Sum of result may not be len(argTuple), as some args may be in/out."
|
326
|
-
ins = out = opts = 0
|
327
|
-
for argCheck in argTuple:
|
328
|
-
inOut = argCheck[1]
|
329
|
-
if inOut == 0:
|
330
|
-
ins += 1
|
331
|
-
out += 1
|
332
|
-
else:
|
333
|
-
if inOut & pythoncom.PARAMFLAG_FIN:
|
334
|
-
ins += 1
|
335
|
-
if inOut & pythoncom.PARAMFLAG_FOPT:
|
336
|
-
opts += 1
|
337
|
-
if inOut & pythoncom.PARAMFLAG_FOUT:
|
338
|
-
out += 1
|
339
|
-
return ins, out, opts
|
340
|
-
|
341
|
-
def MakeFuncMethod(self, entry, name, bMakeClass=1):
|
342
|
-
# If we have a type description, and not varargs...
|
343
|
-
if entry.desc is not None and (len(entry.desc) < 6 or entry.desc[6] != -1):
|
344
|
-
return self.MakeDispatchFuncMethod(entry, name, bMakeClass)
|
345
|
-
else:
|
346
|
-
return self.MakeVarArgsFuncMethod(entry, name, bMakeClass)
|
347
|
-
|
348
|
-
def MakeDispatchFuncMethod(self, entry, name, bMakeClass=1):
|
349
|
-
fdesc = entry.desc
|
350
|
-
doc = entry.doc
|
351
|
-
names = entry.names
|
352
|
-
ret = []
|
353
|
-
if bMakeClass:
|
354
|
-
linePrefix = "\t"
|
355
|
-
defNamedOptArg = "defaultNamedOptArg"
|
356
|
-
defNamedNotOptArg = "defaultNamedNotOptArg"
|
357
|
-
defUnnamedArg = "defaultUnnamedArg"
|
358
|
-
else:
|
359
|
-
linePrefix = ""
|
360
|
-
defNamedOptArg = "pythoncom.Missing"
|
361
|
-
defNamedNotOptArg = "pythoncom.Missing"
|
362
|
-
defUnnamedArg = "pythoncom.Missing"
|
363
|
-
defOutArg = "pythoncom.Missing"
|
364
|
-
id = fdesc[0]
|
365
|
-
|
366
|
-
s = (
|
367
|
-
linePrefix
|
368
|
-
+ "def "
|
369
|
-
+ name
|
370
|
-
+ "(self"
|
371
|
-
+ BuildCallList(
|
372
|
-
fdesc,
|
373
|
-
names,
|
374
|
-
defNamedOptArg,
|
375
|
-
defNamedNotOptArg,
|
376
|
-
defUnnamedArg,
|
377
|
-
defOutArg,
|
378
|
-
)
|
379
|
-
+ "):"
|
380
|
-
)
|
381
|
-
ret.append(s)
|
382
|
-
if doc and doc[1]:
|
383
|
-
ret.append(linePrefix + "\t" + _makeDocString(doc[1]))
|
384
|
-
|
385
|
-
resclsid = entry.GetResultCLSID()
|
386
|
-
if resclsid:
|
387
|
-
resclsid = "'%s'" % resclsid
|
388
|
-
else:
|
389
|
-
resclsid = "None"
|
390
|
-
# Strip the default values from the arg desc
|
391
|
-
retDesc = fdesc[8][:2]
|
392
|
-
argsDesc = tuple([what[:2] for what in fdesc[2]])
|
393
|
-
# The runtime translation of the return types is expensive, so when we know the
|
394
|
-
# return type of the function, there is no need to check the type at runtime.
|
395
|
-
# To qualify, this function must return a "simple" type, and have no byref args.
|
396
|
-
# Check if we have byrefs or anything in the args which mean we still need a translate.
|
397
|
-
param_flags = [what[1] for what in fdesc[2]]
|
398
|
-
bad_params = [
|
399
|
-
flag
|
400
|
-
for flag in param_flags
|
401
|
-
if flag & (pythoncom.PARAMFLAG_FOUT | pythoncom.PARAMFLAG_FRETVAL) != 0
|
402
|
-
]
|
403
|
-
s = None
|
404
|
-
if len(bad_params) == 0 and len(retDesc) == 2 and retDesc[1] == 0:
|
405
|
-
rd = retDesc[0]
|
406
|
-
if rd in NoTranslateMap:
|
407
|
-
s = "{}\treturn self._oleobj_.InvokeTypes({}, LCID, {}, {}, {}{})".format(
|
408
|
-
linePrefix,
|
409
|
-
id,
|
410
|
-
fdesc[4],
|
411
|
-
retDesc,
|
412
|
-
argsDesc,
|
413
|
-
_BuildArgList(fdesc, names),
|
414
|
-
)
|
415
|
-
elif rd in [pythoncom.VT_DISPATCH, pythoncom.VT_UNKNOWN]:
|
416
|
-
s = "{}\tret = self._oleobj_.InvokeTypes({}, LCID, {}, {}, {!r}{})\n".format(
|
417
|
-
linePrefix,
|
418
|
-
id,
|
419
|
-
fdesc[4],
|
420
|
-
retDesc,
|
421
|
-
argsDesc,
|
422
|
-
_BuildArgList(fdesc, names),
|
423
|
-
)
|
424
|
-
s += f"{linePrefix}\tif ret is not None:\n"
|
425
|
-
if rd == pythoncom.VT_UNKNOWN:
|
426
|
-
s += "{}\t\t# See if this IUnknown is really an IDispatch\n".format(
|
427
|
-
linePrefix
|
428
|
-
)
|
429
|
-
s += f"{linePrefix}\t\ttry:\n"
|
430
|
-
s += "{}\t\t\tret = ret.QueryInterface(pythoncom.IID_IDispatch)\n".format(
|
431
|
-
linePrefix
|
432
|
-
)
|
433
|
-
s += f"{linePrefix}\t\texcept pythoncom.error:\n"
|
434
|
-
s += f"{linePrefix}\t\t\treturn ret\n"
|
435
|
-
s += f"{linePrefix}\t\tret = Dispatch(ret, {name!r}, {resclsid})\n"
|
436
|
-
s += f"{linePrefix}\treturn ret"
|
437
|
-
elif rd == pythoncom.VT_BSTR:
|
438
|
-
s = f"{linePrefix}\t# Result is a Unicode object\n"
|
439
|
-
s += "{}\treturn self._oleobj_.InvokeTypes({}, LCID, {}, {}, {!r}{})".format(
|
440
|
-
linePrefix,
|
441
|
-
id,
|
442
|
-
fdesc[4],
|
443
|
-
retDesc,
|
444
|
-
argsDesc,
|
445
|
-
_BuildArgList(fdesc, names),
|
446
|
-
)
|
447
|
-
# else s remains None
|
448
|
-
if s is None:
|
449
|
-
s = "{}\treturn self._ApplyTypes_({}, {}, {}, {}, {!r}, {}{})".format(
|
450
|
-
linePrefix,
|
451
|
-
id,
|
452
|
-
fdesc[4],
|
453
|
-
retDesc,
|
454
|
-
argsDesc,
|
455
|
-
name,
|
456
|
-
resclsid,
|
457
|
-
_BuildArgList(fdesc, names),
|
458
|
-
)
|
459
|
-
|
460
|
-
ret.append(s)
|
461
|
-
ret.append("")
|
462
|
-
return ret
|
463
|
-
|
464
|
-
def MakeVarArgsFuncMethod(self, entry, name, bMakeClass=1):
|
465
|
-
fdesc = entry.desc
|
466
|
-
names = entry.names
|
467
|
-
doc = entry.doc
|
468
|
-
ret = []
|
469
|
-
argPrefix = "self"
|
470
|
-
if bMakeClass:
|
471
|
-
linePrefix = "\t"
|
472
|
-
else:
|
473
|
-
linePrefix = ""
|
474
|
-
ret.append(linePrefix + "def " + name + "(" + argPrefix + ", *args):")
|
475
|
-
if doc and doc[1]:
|
476
|
-
ret.append(linePrefix + "\t" + _makeDocString(doc[1]))
|
477
|
-
if fdesc:
|
478
|
-
invoketype = fdesc[4]
|
479
|
-
else:
|
480
|
-
invoketype = pythoncom.DISPATCH_METHOD
|
481
|
-
s = linePrefix + "\treturn self._get_good_object_(self._oleobj_.Invoke(*(("
|
482
|
-
ret.append(
|
483
|
-
s + str(entry.dispid) + ",0,%d,1)+args)),'%s')" % (invoketype, names[0])
|
484
|
-
)
|
485
|
-
ret.append("")
|
486
|
-
return ret
|
487
|
-
|
488
|
-
|
489
|
-
# Note - "DispatchItem" poorly named - need a new intermediate class.
|
490
|
-
class VTableItem(DispatchItem):
|
491
|
-
def Build(self, typeinfo, attr, bForUser=1):
|
492
|
-
DispatchItem.Build(self, typeinfo, attr, bForUser)
|
493
|
-
assert typeinfo is not None, "Can't build vtables without type info!"
|
494
|
-
|
495
|
-
meth_list = sorted(
|
496
|
-
chain(
|
497
|
-
self.mapFuncs.values(),
|
498
|
-
self.propMapGet.values(),
|
499
|
-
self.propMapPut.values(),
|
500
|
-
),
|
501
|
-
key=lambda m: m.desc[7],
|
502
|
-
)
|
503
|
-
|
504
|
-
# Now turn this list into the run-time representation
|
505
|
-
# (ready for immediate use or writing to gencache)
|
506
|
-
self.vtableFuncs = [
|
507
|
-
(entry.names, entry.dispid, entry.desc) for entry in meth_list
|
508
|
-
]
|
509
|
-
|
510
|
-
|
511
|
-
# A Lazy dispatch item - builds an item on request using info from
|
512
|
-
# an ITypeComp. The dynamic module makes the called to build each item,
|
513
|
-
# and also holds the references to the typeinfo and typecomp.
|
514
|
-
class LazyDispatchItem(DispatchItem):
|
515
|
-
typename = "LazyDispatchItem"
|
516
|
-
|
517
|
-
def __init__(self, attr, doc):
|
518
|
-
self.clsid = attr[0]
|
519
|
-
DispatchItem.__init__(self, None, attr, doc, 0)
|
520
|
-
|
521
|
-
|
522
|
-
typeSubstMap = {
|
523
|
-
pythoncom.VT_INT: pythoncom.VT_I4,
|
524
|
-
pythoncom.VT_UINT: pythoncom.VT_UI4,
|
525
|
-
pythoncom.VT_HRESULT: pythoncom.VT_I4,
|
526
|
-
}
|
527
|
-
|
528
|
-
|
529
|
-
def _ResolveType(typerepr, itypeinfo):
|
530
|
-
# Resolve VT_USERDEFINED (often aliases or typed IDispatches)
|
531
|
-
|
532
|
-
if isinstance(typerepr, tuple):
|
533
|
-
indir_vt, subrepr = typerepr
|
534
|
-
if indir_vt == pythoncom.VT_PTR:
|
535
|
-
# If it is a VT_PTR to a VT_USERDEFINED that is an IDispatch/IUnknown,
|
536
|
-
# then it resolves to simply the object.
|
537
|
-
# Otherwise, it becomes a ByRef of the resolved type
|
538
|
-
# We need to drop an indirection level on pointer to user defined interfaces.
|
539
|
-
# eg, (VT_PTR, (VT_USERDEFINED, somehandle)) needs to become VT_DISPATCH
|
540
|
-
# only when "somehandle" is an object.
|
541
|
-
# but (VT_PTR, (VT_USERDEFINED, otherhandle)) doesn't get the indirection dropped.
|
542
|
-
was_user = (
|
543
|
-
isinstance(subrepr, tuple) and subrepr[0] == pythoncom.VT_USERDEFINED
|
544
|
-
)
|
545
|
-
subrepr, sub_clsid, sub_doc = _ResolveType(subrepr, itypeinfo)
|
546
|
-
if was_user and subrepr in [
|
547
|
-
pythoncom.VT_DISPATCH,
|
548
|
-
pythoncom.VT_UNKNOWN,
|
549
|
-
]:
|
550
|
-
# Drop the VT_PTR indirection
|
551
|
-
return subrepr, sub_clsid, sub_doc
|
552
|
-
# Change PTR indirection to byref
|
553
|
-
return subrepr | pythoncom.VT_BYREF, sub_clsid, sub_doc
|
554
|
-
if indir_vt == pythoncom.VT_SAFEARRAY:
|
555
|
-
# resolve the array element, and convert to VT_ARRAY
|
556
|
-
subrepr, sub_clsid, sub_doc = _ResolveType(subrepr, itypeinfo)
|
557
|
-
return pythoncom.VT_ARRAY | subrepr, sub_clsid, sub_doc
|
558
|
-
if indir_vt == pythoncom.VT_CARRAY: # runtime has no support for this yet.
|
559
|
-
# resolve the array element, and convert to VT_CARRAY
|
560
|
-
# sheesh - return _something_
|
561
|
-
return pythoncom.VT_CARRAY, None, None
|
562
|
-
if indir_vt == pythoncom.VT_USERDEFINED:
|
563
|
-
try:
|
564
|
-
resultTypeInfo = itypeinfo.GetRefTypeInfo(subrepr)
|
565
|
-
except pythoncom.com_error as details:
|
566
|
-
if details.hresult in [
|
567
|
-
winerror.TYPE_E_CANTLOADLIBRARY,
|
568
|
-
winerror.TYPE_E_LIBNOTREGISTERED,
|
569
|
-
]:
|
570
|
-
# an unregistered interface
|
571
|
-
return pythoncom.VT_UNKNOWN, None, None
|
572
|
-
raise
|
573
|
-
|
574
|
-
resultAttr = resultTypeInfo.GetTypeAttr()
|
575
|
-
typeKind = resultAttr.typekind
|
576
|
-
if typeKind == pythoncom.TKIND_ALIAS:
|
577
|
-
tdesc = resultAttr.tdescAlias
|
578
|
-
return _ResolveType(tdesc, resultTypeInfo)
|
579
|
-
elif typeKind in [pythoncom.TKIND_ENUM, pythoncom.TKIND_MODULE]:
|
580
|
-
# For now, assume Long
|
581
|
-
return pythoncom.VT_I4, None, None
|
582
|
-
|
583
|
-
elif typeKind == pythoncom.TKIND_DISPATCH:
|
584
|
-
clsid = resultTypeInfo.GetTypeAttr()[0]
|
585
|
-
retdoc = resultTypeInfo.GetDocumentation(-1)
|
586
|
-
return pythoncom.VT_DISPATCH, clsid, retdoc
|
587
|
-
|
588
|
-
elif typeKind in [pythoncom.TKIND_INTERFACE, pythoncom.TKIND_COCLASS]:
|
589
|
-
# XXX - should probably get default interface for CO_CLASS???
|
590
|
-
clsid = resultTypeInfo.GetTypeAttr()[0]
|
591
|
-
retdoc = resultTypeInfo.GetDocumentation(-1)
|
592
|
-
return pythoncom.VT_UNKNOWN, clsid, retdoc
|
593
|
-
|
594
|
-
elif typeKind == pythoncom.TKIND_RECORD:
|
595
|
-
return pythoncom.VT_RECORD, None, None
|
596
|
-
raise NotSupportedException("Can not resolve alias or user-defined type")
|
597
|
-
return typeSubstMap.get(typerepr, typerepr), None, None
|
598
|
-
|
599
|
-
|
600
|
-
def _BuildArgList(fdesc, names):
|
601
|
-
"Builds list of args to the underlying Invoke method."
|
602
|
-
# Word has TypeInfo for Insert() method, but says "no args"
|
603
|
-
numArgs = max(fdesc[6], len(fdesc[2]))
|
604
|
-
names = list(names)
|
605
|
-
while None in names:
|
606
|
-
i = names.index(None)
|
607
|
-
names[i] = "arg%d" % (i,)
|
608
|
-
# We've seen 'source safe' libraries offer the name of 'ret' params in
|
609
|
-
# 'names' - although we can't reproduce this, it would be insane to offer
|
610
|
-
# more args than we have arg infos for - hence the upper limit on names...
|
611
|
-
names = list(map(MakePublicAttributeName, names[1 : (numArgs + 1)]))
|
612
|
-
name_num = 0
|
613
|
-
while len(names) < numArgs:
|
614
|
-
names.append("arg%d" % (len(names),))
|
615
|
-
# As per BuildCallList(), avoid huge lines.
|
616
|
-
# Hack a "\n" at the end of every 5th name
|
617
|
-
for i in range(0, len(names), 5):
|
618
|
-
names[i] += "\n\t\t\t"
|
619
|
-
return "," + ", ".join(names)
|
620
|
-
|
621
|
-
|
622
|
-
valid_identifier_chars = string.ascii_letters + string.digits + "_"
|
623
|
-
|
624
|
-
|
625
|
-
def demunge_leading_underscores(className):
|
626
|
-
i = 0
|
627
|
-
while className[i] == "_":
|
628
|
-
i += 1
|
629
|
-
assert i >= 2, "Should only be here with names starting with '__'"
|
630
|
-
return className[i - 1 :] + className[: i - 1]
|
631
|
-
|
632
|
-
|
633
|
-
# Given a "public name" (eg, the name of a class, function, etc)
|
634
|
-
# make sure it is a legal (and reasonable!) Python name.
|
635
|
-
def MakePublicAttributeName(className, is_global=False):
|
636
|
-
# Given a class attribute that needs to be public, convert it to a
|
637
|
-
# reasonable name.
|
638
|
-
# Also need to be careful that the munging doesn't
|
639
|
-
# create duplicates - eg, just removing a leading "_" is likely to cause
|
640
|
-
# a clash.
|
641
|
-
# if is_global is True, then the name is a global variable that may
|
642
|
-
# overwrite a builtin - eg, "None"
|
643
|
-
if className[:2] == "__":
|
644
|
-
return demunge_leading_underscores(className)
|
645
|
-
elif className == "None":
|
646
|
-
# assign to None is evil (and SyntaxError in 2.4, even though
|
647
|
-
# iskeyword says False there) - note that if it was a global
|
648
|
-
# it would get picked up below
|
649
|
-
className = "NONE"
|
650
|
-
elif iskeyword(className):
|
651
|
-
# most keywords are lower case (except True, False, etc)
|
652
|
-
ret = className.capitalize()
|
653
|
-
# but those which aren't get forced upper.
|
654
|
-
if ret == className:
|
655
|
-
ret = ret.upper()
|
656
|
-
return ret
|
657
|
-
elif is_global and hasattr(builtins, className):
|
658
|
-
# builtins may be mixed case. If capitalizing it doesn't change it,
|
659
|
-
# force to all uppercase (eg, "None", "True" become "NONE", "TRUE"
|
660
|
-
ret = className.capitalize()
|
661
|
-
if ret == className: # didn't change - force all uppercase.
|
662
|
-
ret = ret.upper()
|
663
|
-
return ret
|
664
|
-
# Strip non printable chars
|
665
|
-
return "".join([char for char in className if char in valid_identifier_chars])
|
666
|
-
|
667
|
-
|
668
|
-
# Given a default value passed by a type library, return a string with
|
669
|
-
# an appropriate repr() for the type.
|
670
|
-
# Takes a raw ELEMDESC and returns a repr string, or None
|
671
|
-
# (NOTE: The string itself may be '"None"', which is valid, and different to None.
|
672
|
-
# XXX - To do: Dates are probably screwed, but can they come in?
|
673
|
-
def MakeDefaultArgRepr(defArgVal):
|
674
|
-
try:
|
675
|
-
inOut = defArgVal[1]
|
676
|
-
except IndexError:
|
677
|
-
# something strange - assume is in param.
|
678
|
-
inOut = pythoncom.PARAMFLAG_FIN
|
679
|
-
|
680
|
-
if inOut & pythoncom.PARAMFLAG_FHASDEFAULT:
|
681
|
-
# times need special handling...
|
682
|
-
val = defArgVal[2]
|
683
|
-
if isinstance(val, datetime.datetime):
|
684
|
-
# VARIANT <-> SYSTEMTIME conversions always lose any sub-second
|
685
|
-
# resolution, so just use a 'timetuple' here.
|
686
|
-
return repr(tuple(val.utctimetuple()))
|
687
|
-
if isinstance(val, TimeType):
|
688
|
-
# must be the 'old' pywintypes time object...
|
689
|
-
year = val.year
|
690
|
-
month = val.month
|
691
|
-
day = val.day
|
692
|
-
hour = val.hour
|
693
|
-
minute = val.minute
|
694
|
-
second = val.second
|
695
|
-
msec = val.msec
|
696
|
-
return (
|
697
|
-
"pywintypes.Time((%(year)d, %(month)d, %(day)d, %(hour)d, %(minute)d, %(second)d,0,0,0,%(msec)d))"
|
698
|
-
% locals()
|
699
|
-
)
|
700
|
-
return repr(val)
|
701
|
-
return None
|
702
|
-
|
703
|
-
|
704
|
-
def BuildCallList(
|
705
|
-
fdesc,
|
706
|
-
names,
|
707
|
-
defNamedOptArg,
|
708
|
-
defNamedNotOptArg,
|
709
|
-
defUnnamedArg,
|
710
|
-
defOutArg,
|
711
|
-
is_comment=False,
|
712
|
-
):
|
713
|
-
"Builds a Python declaration for a method."
|
714
|
-
# Names[0] is the func name - param names are from 1.
|
715
|
-
numArgs = len(fdesc[2])
|
716
|
-
numOptArgs = fdesc[6]
|
717
|
-
strval = ""
|
718
|
-
if numOptArgs == -1: # Special value that says "var args after here"
|
719
|
-
firstOptArg = numArgs
|
720
|
-
numArgs -= 1
|
721
|
-
else:
|
722
|
-
firstOptArg = numArgs - numOptArgs
|
723
|
-
for arg in range(numArgs):
|
724
|
-
try:
|
725
|
-
argName = names[arg + 1]
|
726
|
-
namedArg = argName is not None
|
727
|
-
except IndexError:
|
728
|
-
namedArg = 0
|
729
|
-
if not namedArg:
|
730
|
-
argName = "arg%d" % (arg)
|
731
|
-
thisdesc = fdesc[2][arg]
|
732
|
-
# See if the IDL specified a default value
|
733
|
-
defArgVal = MakeDefaultArgRepr(thisdesc)
|
734
|
-
if defArgVal is None:
|
735
|
-
# Out params always get their special default
|
736
|
-
if (
|
737
|
-
thisdesc[1] & (pythoncom.PARAMFLAG_FOUT | pythoncom.PARAMFLAG_FIN)
|
738
|
-
== pythoncom.PARAMFLAG_FOUT
|
739
|
-
):
|
740
|
-
defArgVal = defOutArg
|
741
|
-
else:
|
742
|
-
# Unnamed arg - always allow default values.
|
743
|
-
if namedArg:
|
744
|
-
# Is a named argument
|
745
|
-
if arg >= firstOptArg:
|
746
|
-
defArgVal = defNamedOptArg
|
747
|
-
else:
|
748
|
-
defArgVal = defNamedNotOptArg
|
749
|
-
else:
|
750
|
-
defArgVal = defUnnamedArg
|
751
|
-
|
752
|
-
argName = MakePublicAttributeName(argName)
|
753
|
-
# keep 5 args per line
|
754
|
-
# This may still fail if the arg names are insane, but that seems
|
755
|
-
# unlikely. See also _BuildArgList()
|
756
|
-
if (arg + 1) % 5 == 0:
|
757
|
-
strval += "\n"
|
758
|
-
if is_comment:
|
759
|
-
strval += "#"
|
760
|
-
strval += "\t\t\t"
|
761
|
-
strval += ", " + argName
|
762
|
-
if defArgVal:
|
763
|
-
strval += "=" + defArgVal
|
764
|
-
if numOptArgs == -1:
|
765
|
-
strval += ", *" + names[-1]
|
766
|
-
|
767
|
-
return strval
|
768
|
-
|
769
|
-
|
770
|
-
if __name__ == "__main__":
|
771
|
-
print("Use 'makepy.py' to generate Python code - this module is just a helper")
|