py2docfx 0.1.13rc2012291__py3-none-any.whl → 0.1.13rc2022156__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/venv/basevenv/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
- py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
- py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/util.py +38 -23
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_static.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/install.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/unicode_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/__init__.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/ado_consts.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/adodbapi.py +22 -26
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/apibase.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_print.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_table_names.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/process_connect_string.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/setup.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitest.py +21 -73
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/dbapi20.py +11 -17
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/setuptestframework.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/install.py +8 -11
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_asynch.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_with_filter.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/simple.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/isapi/threaded_extension.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/customprint.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/demoutils.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/cmdserver.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/guidemo.py +14 -41
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/objdoc.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/demoutils.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/flash.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxtest.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/webbrowser.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/openGLDemo.py +57 -12
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/toolbar.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/configui.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgcon.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/debugger.py +7 -8
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/fail.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/ideoptions.py +7 -10
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/list.py +11 -8
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/login.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/DockingBar.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/app.py +19 -22
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dbgcommands.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/ModuleBrowser.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/__init__.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/document.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/editor.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/help.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/interact.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py +5 -7
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpydde.py +7 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/scriptutils.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py +13 -22
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/startup.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/stdin.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/toolmenu.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoIndent.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/CallTips.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/activex.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/dialog.py +7 -10
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/IDLEenvironment.py +1 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/bindings.py +4 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/config.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/configui.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/document.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/formatter.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/keycodes.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py +1178 -78
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/view.py +17 -21
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browser.py +6 -18
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/hierlist.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
- py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
- py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/util.py +38 -23
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_static.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/install.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/unicode_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtFormatMessage.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +8 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/GetSaveFileName.py +8 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/c_extension/setup.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeclient.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeserver.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/getfilever.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/runproc.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/rastest.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/account_rights.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/explicit_entries.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/get_policy_info.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/list_rights.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/localized_names.py +7 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/query_information.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_audit.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_owner.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_policy_info.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestService.py +10 -9
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +6 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboardDemo.py +17 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32comport_demo.py +32 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32console_demo.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_menu.py +60 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_taskbar.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32netdemo.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/commctrl.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/netbios.py +8 -10
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_bootstrap.py +2 -10
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_testutil.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywintypes.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regutil.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspi.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win2kras.py +14 -7
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32con.py +16 -35
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32cryptcon.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32evtlogutil.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32gui_struct.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhquery.py +10 -11
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhutil.py +5 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32rcparser.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32serviceutil.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32timezone.py +304 -121
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32verstamp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winerror.py +4926 -604
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winxptheme.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/h2py.py +194 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_postinstall.py +733 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_testall.py +120 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/regsetup.py +4 -7
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/setup_d.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/handles.py +13 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_clipboard.py +12 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_sspi.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32api.py +8 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32clipboard.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32cred.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32crypt.py +16 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32file.py +24 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32gui.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32guistruct.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32inet.py +23 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32net.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32ts.py +19 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/winxpgui.py +3 -11
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/CLSIDToClass.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/__init__.py +97 -65
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/build.py +24 -24
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/combrowse.py +17 -33
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/dynamic.py +14 -14
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/gencache.py +30 -12
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/genpy.py +50 -98
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/makepy.py +12 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/selecttlb.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/util.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/dump_clipboard.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelAddin.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelRTDServer.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/iebutton.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/ietoolbar.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/outlookAddin.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegw.py +48 -56
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwenum.py +2 -6
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwparse.py +9 -11
- py2docfx/venv/venv1/Lib/site-packages/win32com/olectl.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/connect.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/dispatcher.py +20 -24
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/exception.py +8 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/policy.py +4 -18
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/register.py +5 -6
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/dictionary.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/interp.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/test_pycomtest.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/GenTestScripts.py +2 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/errorSemantics.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/pippo_server.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testADOEvents.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAXScript.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDictionary.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDynamic.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExchange.py +2 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGatewayAddresses.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testIterators.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOffice.py +40 -57
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOfficeEvents.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPersist.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPippo.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPyComTest.py +143 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testServers.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testall.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testmakepy.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvb.py +12 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/util.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/universal.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/util.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/scp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/search.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +1 -24
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +0 -20
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/adb.py +2 -8
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/codecontainer.py +16 -12
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/contexts.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/debugger.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/documents.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/dump.py +2 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/expressions.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/util.py +7 -14
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/debug.py +2 -14
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/error.py +4 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/framework.py +5 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pydumper.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript.py +5 -10
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/axsite.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/leakTest.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/test_bits.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/demo/filterDemo.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/demos/mapisend.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/emsabtags.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapitags.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapiutil.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/test/testpropsys.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +5 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +4 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +0 -1
- py2docfx/venv/venv1/Scripts/pywin32_postinstall.py +77 -122
- py2docfx/venv/venv1/Scripts/pywin32_testall.py +4 -9
- {py2docfx-0.1.13rc2012291.dist-info → py2docfx-0.1.13rc2022156.dist-info}/METADATA +1 -1
- {py2docfx-0.1.13rc2012291.dist-info → py2docfx-0.1.13rc2022156.dist-info}/RECORD +342 -329
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/mdi_pychecker.py +0 -850
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testNetscape.py +0 -24
- {py2docfx-0.1.13rc2012291.dist-info → py2docfx-0.1.13rc2022156.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.13rc2012291.dist-info → py2docfx-0.1.13rc2022156.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,4 @@
|
|
1
|
-
"""The glue between the Python debugger interface and the Active Debugger interface
|
2
|
-
"""
|
1
|
+
"""The glue between the Python debugger interface and the Active Debugger interface"""
|
3
2
|
|
4
3
|
import _thread
|
5
4
|
import bdb
|
@@ -19,12 +18,7 @@ def fnull(*args):
|
|
19
18
|
pass
|
20
19
|
|
21
20
|
|
22
|
-
|
23
|
-
os.environ["DEBUG_AXDEBUG"]
|
24
|
-
debugging = 1
|
25
|
-
except KeyError:
|
26
|
-
debugging = 0
|
27
|
-
|
21
|
+
debugging = "DEBUG_AXDEBUG" in os.environ
|
28
22
|
traceenter = fnull # trace enter of functions
|
29
23
|
tracev = fnull # verbose trace
|
30
24
|
|
@@ -4,9 +4,13 @@ A code container is a class which holds source code for a debugger. It knows ho
|
|
4
4
|
to color the text, and also how to translate lines into offsets, and back.
|
5
5
|
"""
|
6
6
|
|
7
|
+
from __future__ import annotations
|
8
|
+
|
7
9
|
import os
|
8
10
|
import sys
|
9
11
|
import tokenize
|
12
|
+
from keyword import kwlist
|
13
|
+
from typing import Any
|
10
14
|
|
11
15
|
import win32api
|
12
16
|
import winerror
|
@@ -14,19 +18,19 @@ from win32com.axdebug import axdebug, contexts
|
|
14
18
|
from win32com.axdebug.util import _wrap
|
15
19
|
from win32com.server.exception import COMException
|
16
20
|
|
17
|
-
_keywords = {
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
_keywords = {
|
22
|
+
_keyword
|
23
|
+
for _keyword in kwlist
|
24
|
+
# Avoids including True/False/None
|
25
|
+
if _keyword.islower()
|
26
|
+
}
|
27
|
+
"""set of Python keywords"""
|
24
28
|
|
25
29
|
|
26
30
|
class SourceCodeContainer:
|
27
31
|
def __init__(
|
28
32
|
self,
|
29
|
-
text,
|
33
|
+
text: str | None,
|
30
34
|
fileName="<Remove Me!>",
|
31
35
|
sourceContext=0,
|
32
36
|
startLineNumber=0,
|
@@ -34,12 +38,13 @@ class SourceCodeContainer:
|
|
34
38
|
debugDocument=None,
|
35
39
|
):
|
36
40
|
self.sourceContext = sourceContext # The source context added by a smart host.
|
37
|
-
self.text = text
|
41
|
+
self.text: str | None = text
|
38
42
|
if text:
|
39
43
|
self._buildlines()
|
40
44
|
self.nextLineNo = 0
|
41
45
|
self.fileName = fileName
|
42
|
-
|
46
|
+
# Any: PyIDispatch type is not statically exposed
|
47
|
+
self.codeContexts: dict[int, Any] = {}
|
43
48
|
self.site = site
|
44
49
|
self.startLineNumber = startLineNumber
|
45
50
|
self.debugDocument = debugDocument
|
@@ -193,7 +198,6 @@ class SourceCodeContainer:
|
|
193
198
|
charPos = self.GetPositionOfLine(lineNo)
|
194
199
|
try:
|
195
200
|
cc = self.codeContexts[charPos]
|
196
|
-
# trace(" GetContextOfPos using existing")
|
197
201
|
except KeyError:
|
198
202
|
cc = self._MakeContextAtPosition(charPos)
|
199
203
|
self.codeContexts[charPos] = cc
|
@@ -226,7 +230,7 @@ class SourceModuleContainer(SourceCodeContainer):
|
|
226
230
|
try:
|
227
231
|
self.text = open(fname, "r").read()
|
228
232
|
except OSError as details:
|
229
|
-
self.text = f"# COMException opening file\n# {
|
233
|
+
self.text = f"# COMException opening file\n# {details!r}"
|
230
234
|
else:
|
231
235
|
self.text = f"# No file available for module '{self.module}'"
|
232
236
|
self._buildlines()
|
@@ -64,7 +64,7 @@ def BuildModule(module, built_nodes, rootNode, create_node_fn, create_node_args)
|
|
64
64
|
|
65
65
|
|
66
66
|
def RefreshAllModules(builtItems, rootNode, create_node, create_node_args):
|
67
|
-
for module in
|
67
|
+
for module in sys.modules.values():
|
68
68
|
BuildModule(module, builtItems, rootNode, create_node, create_node_args)
|
69
69
|
|
70
70
|
|
@@ -85,7 +85,7 @@ class CodeContainerProvider(documents.CodeContainerProvider):
|
|
85
85
|
# if self.currentNumModules != len(sys.modules):
|
86
86
|
# self.axdebugger.RefreshAllModules(self.nodes, self)
|
87
87
|
# self.currentNumModules = len(sys.modules)
|
88
|
-
# for key in self.ccsAndNodes
|
88
|
+
# for key in self.ccsAndNodes:
|
89
89
|
# print("File:", key)
|
90
90
|
return documents.CodeContainerProvider.FromFileName(self, fname)
|
91
91
|
|
@@ -1,5 +1,4 @@
|
|
1
|
-
"""
|
2
|
-
"""
|
1
|
+
"""Management of documents for AXDebugging."""
|
3
2
|
|
4
3
|
import pythoncom
|
5
4
|
import win32api
|
@@ -106,7 +105,7 @@ class CodeContainerProvider:
|
|
106
105
|
Given a Python file name (as the debugger knows it by) this will
|
107
106
|
return a CodeContainer interface suitable for use.
|
108
107
|
|
109
|
-
This provides a simple base
|
108
|
+
This provides a simple base implementation that simply supports
|
110
109
|
a dictionary of nodes and providers.
|
111
110
|
"""
|
112
111
|
|
@@ -28,7 +28,7 @@ def DumpDebugApplicationNode(node, level=0):
|
|
28
28
|
numLines, numChars = doctext.GetSize()
|
29
29
|
# text, attr = doctext.GetText(0, 20, 1)
|
30
30
|
text, attr = doctext.GetText(0, numChars, 1)
|
31
|
-
print(f"{spacer}Text is {
|
31
|
+
print(f"{spacer}Text is '{text[:40] + '...'}', {len(text)} bytes long")
|
32
32
|
else:
|
33
33
|
print(f"{spacer*2}<No document available>")
|
34
34
|
|
@@ -46,9 +46,7 @@ def dumpall():
|
|
46
46
|
e = Enumerator(dm.EnumApplications())
|
47
47
|
for app in e:
|
48
48
|
print(f"Application: {app.GetName()}")
|
49
|
-
node = (
|
50
|
-
app.GetRootNode()
|
51
|
-
) # of type PyIDebugApplicationNode->PyIDebugDocumentProvider->PyIDebugDocumentInfo
|
49
|
+
node = app.GetRootNode() # of type PyIDebugApplicationNode->PyIDebugDocumentProvider->PyIDebugDocumentInfo
|
52
50
|
DumpDebugApplicationNode(node)
|
53
51
|
|
54
52
|
|
@@ -90,10 +90,10 @@ class Expression(gateways.DebugExpression):
|
|
90
90
|
def MakeEnumDebugProperty(object, dwFieldSpec, nRadix, iid, stackFrame=None):
|
91
91
|
name_vals = []
|
92
92
|
if hasattr(object, "items") and hasattr(object, "keys"): # If it is a dict.
|
93
|
-
name_vals =
|
93
|
+
name_vals = object.items()
|
94
94
|
dictionary = object
|
95
95
|
elif hasattr(object, "__dict__"): # object with dictionary, module
|
96
|
-
name_vals =
|
96
|
+
name_vals = object.__dict__.items()
|
97
97
|
dictionary = object.__dict__
|
98
98
|
infos = []
|
99
99
|
for name, val in name_vals:
|
@@ -3,18 +3,16 @@
|
|
3
3
|
|
4
4
|
import os
|
5
5
|
import sys
|
6
|
+
import traceback
|
6
7
|
|
7
8
|
import win32api
|
9
|
+
import win32com.server.dispatcher
|
8
10
|
import win32com.server.policy
|
9
11
|
import win32com.server.util
|
10
12
|
import winerror
|
11
13
|
from win32com.server.exception import COMException
|
12
14
|
|
13
|
-
|
14
|
-
os.environ["DEBUG_AXDEBUG"]
|
15
|
-
debugging = 1
|
16
|
-
except KeyError:
|
17
|
-
debugging = 0
|
15
|
+
debugging = "DEBUG_AXDEBUG" in os.environ
|
18
16
|
|
19
17
|
|
20
18
|
def trace(*args):
|
@@ -46,21 +44,16 @@ def RaiseNotImpl(who=None):
|
|
46
44
|
print(f"********* Function {who} Raising E_NOTIMPL ************")
|
47
45
|
|
48
46
|
# Print a sort-of "traceback", dumping all the frames leading to here.
|
49
|
-
|
50
|
-
1 / 0
|
51
|
-
except:
|
52
|
-
frame = sys.exc_info()[2].tb_frame
|
53
|
-
while frame:
|
47
|
+
for frame, i in traceback.walk_stack(sys._getframe()):
|
54
48
|
print(f"File: {frame.f_code.co_filename}, Line: {frame.f_lineno}")
|
55
|
-
frame = frame.f_back
|
56
49
|
|
57
50
|
# and raise the exception for COM
|
58
51
|
raise COMException(scode=winerror.E_NOTIMPL)
|
59
52
|
|
60
53
|
|
61
|
-
class Dispatcher(win32com.server.
|
54
|
+
class Dispatcher(win32com.server.dispatcher.DispatcherWin32trace):
|
62
55
|
def __init__(self, policyClass, object):
|
63
|
-
win32com.server.
|
56
|
+
win32com.server.dispatcher.DispatcherTrace.__init__(self, policyClass, object)
|
64
57
|
import win32traceutil # Sets up everything.
|
65
58
|
|
66
59
|
# print(f"Object with win32trace dispatcher created ({object})")
|
@@ -92,7 +85,7 @@ class Dispatcher(win32com.server.policy.DispatcherWin32trace):
|
|
92
85
|
tb = None # A cycle
|
93
86
|
scode = v.scode
|
94
87
|
try:
|
95
|
-
desc = " (
|
88
|
+
desc = f" ({v.description})"
|
96
89
|
except AttributeError:
|
97
90
|
desc = ""
|
98
91
|
print(f"*** Invoke of {dispid} raised COM exception 0x{scode:x}{desc}")
|
@@ -3,20 +3,13 @@ import sys
|
|
3
3
|
|
4
4
|
import pythoncom
|
5
5
|
import win32api
|
6
|
-
import win32com.server.util
|
7
6
|
import winerror
|
8
7
|
from win32com.axdebug import adb, axdebug, documents, gateways
|
9
8
|
from win32com.axdebug.codecontainer import SourceCodeContainer
|
10
9
|
from win32com.axdebug.util import _wrap
|
11
|
-
from win32com.client.util import Enumerator
|
12
10
|
from win32com.server.exception import COMException
|
13
|
-
from win32com.util import IIDToInterfaceName
|
14
11
|
|
15
|
-
|
16
|
-
os.environ["DEBUG_AXDEBUG"]
|
17
|
-
debuggingTrace = 1 # Should we print "trace" output?
|
18
|
-
except KeyError:
|
19
|
-
debuggingTrace = 0
|
12
|
+
debuggingTrace = "DEBUG_AXDEBUG" in os.environ # Should we print "trace" output?
|
20
13
|
|
21
14
|
|
22
15
|
def trace(*args):
|
@@ -132,12 +125,7 @@ class DebugManager:
|
|
132
125
|
|
133
126
|
def OnEnterScript(self):
|
134
127
|
trace("OnEnterScript")
|
135
|
-
|
136
|
-
1 / 0
|
137
|
-
except:
|
138
|
-
# Bit of a hack - reach into engine.
|
139
|
-
baseFrame = sys.exc_info()[2].tb_frame.f_back
|
140
|
-
self.adb.SetupAXDebugging(baseFrame)
|
128
|
+
self.adb.SetupAXDebugging(sys._getframe().f_back)
|
141
129
|
|
142
130
|
def OnLeaveScript(self):
|
143
131
|
trace("OnLeaveScript")
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"""Exception and error handling.
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
This contains the core exceptions that the implementations should raise
|
4
|
+
as well as the IActiveScriptError interface code.
|
5
5
|
"""
|
6
6
|
|
7
7
|
from __future__ import annotations
|
@@ -19,7 +19,6 @@ from win32com.axscript import axscript
|
|
19
19
|
from win32com.server.exception import COMException
|
20
20
|
|
21
21
|
if TYPE_CHECKING:
|
22
|
-
# Prevent circular imports
|
23
22
|
from win32comext.axscript.client.debug import DebugManager
|
24
23
|
from win32comext.axscript.client.framework import AXScriptCodeBlock, COMScript
|
25
24
|
from win32comext.axscript.server.axsite import AXSite
|
@@ -248,8 +247,8 @@ def ProcessAXScriptException(
|
|
248
247
|
result = scriptingSite.OnScriptError(gateway)
|
249
248
|
except pythoncom.com_error as details:
|
250
249
|
print("**OnScriptError failed:", details)
|
251
|
-
print("Exception description:'
|
252
|
-
print("Exception text:'
|
250
|
+
print(f"Exception description: '{exceptionInstance.description!r}'")
|
251
|
+
print(f"Exception text: '{exceptionInstance.linetext!r}'")
|
253
252
|
result = winerror.S_FALSE
|
254
253
|
|
255
254
|
if result == winerror.S_OK:
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"""AXScript Client Framework
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
This module provides a core framework for an ActiveX Scripting client.
|
4
|
+
Derived classes actually implement the AX Client itself, including the
|
5
|
+
scoping rules, etc.
|
6
6
|
|
7
|
-
|
7
|
+
There are classes defined for the engine itself, and for ScriptItems
|
8
8
|
"""
|
9
9
|
|
10
10
|
from __future__ import annotations
|
@@ -987,7 +987,7 @@ class COMScript:
|
|
987
987
|
# Due to the way we work, we re-create persistent ones.
|
988
988
|
existing = self.subItems
|
989
989
|
self.subItems = {}
|
990
|
-
for
|
990
|
+
for item in existing.values():
|
991
991
|
item.Close()
|
992
992
|
if item.flags & axscript.SCRIPTITEM_ISPERSISTENT:
|
993
993
|
self.AddNamedItem(item.name, item.flags)
|
@@ -11,7 +11,6 @@ import re
|
|
11
11
|
import types
|
12
12
|
|
13
13
|
import pythoncom
|
14
|
-
import win32api
|
15
14
|
import win32com
|
16
15
|
import win32com.client.dynamic
|
17
16
|
import win32com.server.register
|
@@ -22,7 +21,6 @@ from win32com.axscript.client.framework import (
|
|
22
21
|
SCRIPTTEXT_FORCEEXECUTION,
|
23
22
|
SCRIPTTEXT_ISEXPRESSION,
|
24
23
|
SCRIPTTEXT_ISPERSISTENT,
|
25
|
-
RaiseAssert,
|
26
24
|
trace,
|
27
25
|
)
|
28
26
|
from win32com.server.exception import COMException
|
@@ -101,7 +99,7 @@ class AXScriptAttribute:
|
|
101
99
|
|
102
100
|
|
103
101
|
class NamedScriptAttribute:
|
104
|
-
"An
|
102
|
+
"An explicitly named object in an objects namespace"
|
105
103
|
|
106
104
|
# Each named object holds a reference to one of these.
|
107
105
|
# Whenever a sub-item appears in a namespace, it is really one of these
|
@@ -111,7 +109,7 @@ class NamedScriptAttribute:
|
|
111
109
|
self.__dict__["_scriptItem_"] = scriptItem
|
112
110
|
|
113
111
|
def __repr__(self):
|
114
|
-
return "<NamedItemAttribute
|
112
|
+
return f"<NamedItemAttribute{self._scriptItem_!r}>"
|
115
113
|
|
116
114
|
def __getattr__(self, attr):
|
117
115
|
# If a known subitem, return it.
|
@@ -160,15 +158,12 @@ class ScriptItem(framework.ScriptItem):
|
|
160
158
|
self.attributeObject = NamedScriptAttribute(self)
|
161
159
|
if self.dispatch:
|
162
160
|
# Need to avoid the new Python "lazy" dispatch behaviour.
|
161
|
+
olerepr, clsid = None
|
163
162
|
try:
|
164
163
|
engine = self.GetEngine()
|
165
|
-
olerepr = clsid = None
|
166
164
|
typeinfo = self.dispatch.GetTypeInfo()
|
167
165
|
clsid = typeinfo.GetTypeAttr()[0]
|
168
|
-
|
169
|
-
olerepr = engine.mapKnownCOMTypes[clsid]
|
170
|
-
except KeyError:
|
171
|
-
pass
|
166
|
+
olerepr = engine.mapKnownCOMTypes.get(clsid)
|
172
167
|
except pythoncom.com_error:
|
173
168
|
typeinfo = None
|
174
169
|
if olerepr is None:
|
@@ -359,7 +354,7 @@ class PyScript(framework.COMScript):
|
|
359
354
|
except KeyError:
|
360
355
|
# Not there _exactly_ - do case ins search.
|
361
356
|
funcNameLook = funcName.lower()
|
362
|
-
for attr in self.globalNameSpaceModule.__dict__
|
357
|
+
for attr in self.globalNameSpaceModule.__dict__:
|
363
358
|
if funcNameLook == attr.lower():
|
364
359
|
function = self.globalNameSpaceModule.__dict__[attr]
|
365
360
|
# cache back in scriptlets, to avoid this overhead next time
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"""dynamic dispatch objects for AX Script.
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
This is an IDispatch object that a scripting host may use to
|
4
|
+
query and invoke methods on the main script. Not may hosts use
|
5
|
+
this yet, so it is not well tested!
|
6
6
|
"""
|
7
7
|
|
8
8
|
from __future__ import annotations
|
@@ -13,7 +13,6 @@ import pythoncom
|
|
13
13
|
import win32com.server.policy
|
14
14
|
import win32com.server.util
|
15
15
|
import winerror
|
16
|
-
from win32com.axscript import axscript
|
17
16
|
from win32com.client import Dispatch
|
18
17
|
from win32com.server.exception import COMException
|
19
18
|
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import pythoncom
|
2
|
-
import win32com.axscript.axscript
|
3
2
|
import winerror
|
4
3
|
from win32com.axscript import axscript
|
5
4
|
from win32com.server import util
|
@@ -99,7 +98,7 @@ class AXSite:
|
|
99
98
|
| axscript.SCRIPTITEM_GLOBALMEMBERS
|
100
99
|
| axscript.SCRIPTITEM_ISPERSISTENT
|
101
100
|
)
|
102
|
-
for name in self.objModel
|
101
|
+
for name in self.objModel:
|
103
102
|
newEngine.AddNamedItem(name, flags)
|
104
103
|
newEngine.SetScriptState(axscript.SCRIPTSTATE_INITIALIZED)
|
105
104
|
return newEngine
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import sys
|
2
2
|
|
3
3
|
import pythoncom
|
4
|
-
import win32com.server.policy
|
5
4
|
from win32com.axscript import axscript
|
6
5
|
from win32com.axscript.server import axsite
|
7
6
|
from win32com.server import connect, util
|
@@ -145,10 +144,10 @@ def doTestEngine(engine, echoer):
|
|
145
144
|
print("***** Calling 'hello' failed", exc)
|
146
145
|
return
|
147
146
|
if echoer.last != "Goober":
|
148
|
-
print("***** Function call
|
147
|
+
print(f"***** Function call didnt set value correctly {echoer.last!r}")
|
149
148
|
|
150
149
|
if str(ob.prop) != "Property Value":
|
151
|
-
print("***** Property Value not correct -
|
150
|
+
print(f"***** Property Value not correct - {ob.prop!r}")
|
152
151
|
|
153
152
|
ob.testcollection()
|
154
153
|
|
@@ -4,7 +4,6 @@ import traceback
|
|
4
4
|
|
5
5
|
import pythoncom
|
6
6
|
import win32ui
|
7
|
-
from win32com.axscript import axscript
|
8
7
|
from win32com.axscript.server import axsite
|
9
8
|
from win32com.server import util
|
10
9
|
|
@@ -76,8 +75,6 @@ def TestEngine():
|
|
76
75
|
|
77
76
|
|
78
77
|
if __name__ == "__main__":
|
79
|
-
import win32com.axdebug.util
|
80
|
-
|
81
78
|
try:
|
82
79
|
TestEngine()
|
83
80
|
except:
|
@@ -44,7 +44,7 @@ class BackgroundJobCallback:
|
|
44
44
|
if f.GetRemoteName().endswith("missing-favicon.ico"):
|
45
45
|
print("Changing to point to correct file")
|
46
46
|
f2 = f.QueryInterface(bits.IID_IBackgroundCopyFile2)
|
47
|
-
favicon = "
|
47
|
+
favicon = "https://www.python.org/favicon.ico"
|
48
48
|
print("Changing RemoteName from", f2.GetRemoteName(), "to", favicon)
|
49
49
|
f2.SetRemoteName(favicon)
|
50
50
|
job.Resume()
|
@@ -93,11 +93,11 @@ job.SetNotifyFlags(
|
|
93
93
|
# servers, an invalid hostname will *always* be resolved (they
|
94
94
|
# redirect you to a search page), so be careful when testing.
|
95
95
|
job.AddFile(
|
96
|
-
"
|
96
|
+
"https://www.python.org/favicon.ico",
|
97
97
|
os.path.join(tempfile.gettempdir(), "bits-favicon.ico"),
|
98
98
|
)
|
99
99
|
job.AddFile(
|
100
|
-
"
|
100
|
+
"https://www.python.org/missing-favicon.ico",
|
101
101
|
os.path.join(tempfile.gettempdir(), "bits-missing-favicon.ico"),
|
102
102
|
)
|
103
103
|
|
@@ -239,7 +239,7 @@ def _usage():
|
|
239
239
|
print("by default .htm, .txt, .doc, .dot, .xls, .xlt, .ppt are supported")
|
240
240
|
print("you can filter .pdf's by downloading adobes ifilter component. ")
|
241
241
|
print(
|
242
|
-
"(currently found at
|
242
|
+
"(currently found at https://download.adobe.com/pub/adobe/acrobat/win/all/ifilter50.exe)."
|
243
243
|
)
|
244
244
|
print("ifilters for other filetypes are also available.")
|
245
245
|
print()
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
"""module to send mail with Extended MAPI using the pywin32 mapi wrappers..."""
|
4
4
|
|
5
|
-
# this was based on Jason Hattingh's C++ code at http://www.codeproject.com/internet/mapadmin.asp
|
5
|
+
# this was based on Jason Hattingh's C++ code at http://www.codeproject.com/internet/mapadmin.asp (dead link)
|
6
6
|
# written by David Fraser <davidf at sjsoft.com> and Stephen Emslie <stephene at sjsoft.com>
|
7
7
|
# you can test this by changing the variables at the bottom and running from the command line
|
8
8
|
|
@@ -67,13 +67,11 @@ PROP_ID_INVALID = 65535
|
|
67
67
|
PR_NULL = PROP_TAG(PT_NULL, PROP_ID_NULL)
|
68
68
|
|
69
69
|
|
70
|
-
PR_ACKNOWLEDGEMENT_MODE = PROP_TAG(PT_LONG, 1)
|
71
70
|
PR_ACKNOWLEDGEMENT_MODE = PROP_TAG(PT_LONG, 1)
|
72
71
|
PR_ALTERNATE_RECIPIENT_ALLOWED = PROP_TAG(PT_BOOLEAN, 2)
|
73
72
|
PR_AUTHORIZING_USERS = PROP_TAG(PT_BINARY, 3)
|
74
73
|
PR_AUTO_FORWARD_COMMENT = PROP_TAG(PT_TSTRING, 4)
|
75
74
|
PR_AUTO_FORWARD_COMMENT_W = PROP_TAG(PT_UNICODE, 4)
|
76
|
-
PR_AUTO_FORWARD_COMMENT_W = PROP_TAG(PT_UNICODE, 4)
|
77
75
|
PR_AUTO_FORWARD_COMMENT_A = PROP_TAG(PT_STRING8, 4)
|
78
76
|
PR_AUTO_FORWARDED = PROP_TAG(PT_BOOLEAN, 5)
|
79
77
|
PR_CONTENT_CONFIDENTIALITY_ALGORITHM_ID = PROP_TAG(PT_BINARY, 6)
|
@@ -824,7 +822,7 @@ PR_INITIAL_DETAILS_PANE = PROP_TAG(PT_LONG, 16136)
|
|
824
822
|
PROP_ID_SECURE_MIN = 26608
|
825
823
|
PROP_ID_SECURE_MAX = 26623
|
826
824
|
|
827
|
-
# From
|
825
|
+
# From EdkMdb.h
|
828
826
|
pidExchangeXmitReservedMin = 16352
|
829
827
|
pidExchangeNonXmitReservedMin = 26080
|
830
828
|
pidProfileMin = 26112
|
@@ -156,7 +156,7 @@ def SetPropertyValue(obj, prop, val):
|
|
156
156
|
if not isinstance(prop, int):
|
157
157
|
props = ((mapi.PS_PUBLIC_STRINGS, prop),)
|
158
158
|
propIds = obj.GetIDsFromNames(props, mapi.MAPI_CREATE)
|
159
|
-
if val ==
|
159
|
+
if val == True or val == False:
|
160
160
|
type_tag = mapitags.PT_BOOLEAN
|
161
161
|
else:
|
162
162
|
type_tag = _MapiTypeMap.get(type(val))
|
@@ -203,7 +203,7 @@ def SetProperties(msg, propDict):
|
|
203
203
|
tagType = mapitags.PT_SYSTIME
|
204
204
|
else:
|
205
205
|
raise ValueError(
|
206
|
-
f"The type of object {
|
206
|
+
f"The type of object {val!r}({type(val)}) can not be written"
|
207
207
|
)
|
208
208
|
key = mapitags.PROP_TAG(tagType, mapitags.PROP_ID(newIds[newIdNo]))
|
209
209
|
newIdNo += 1
|
@@ -5,7 +5,7 @@ import pythoncom
|
|
5
5
|
from win32com.server.policy import DesignatedWrapPolicy
|
6
6
|
from win32com.shell import shell, shellcon
|
7
7
|
|
8
|
-
tsf_flags = [(k, v) for k, v in
|
8
|
+
tsf_flags = [(k, v) for k, v in shellcon.__dict__.items() if k.startswith("TSF_")]
|
9
9
|
|
10
10
|
|
11
11
|
def decode_flags(flags):
|
@@ -4,12 +4,14 @@ import pythoncom
|
|
4
4
|
from win32com.server.policy import DesignatedWrapPolicy
|
5
5
|
from win32com.shell import shell, shellcon
|
6
6
|
|
7
|
-
tsf_flags = [
|
8
|
-
|
7
|
+
tsf_flags = []
|
9
8
|
TRANSFER_ADVISE_STATES = {}
|
10
|
-
|
9
|
+
|
10
|
+
for k, v in shellcon.__dict__.items():
|
11
11
|
if k.startswith("TS_"):
|
12
12
|
TRANSFER_ADVISE_STATES[v] = k
|
13
|
+
elif k.startswith("TSF_"):
|
14
|
+
tsf_flags.append((k, v))
|
13
15
|
|
14
16
|
|
15
17
|
def decode_flags(flags):
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# A sample implementation of IEmptyVolumeCache - see
|
2
|
-
#
|
2
|
+
# https://learn.microsoft.com/en-ca/windows/win32/lwef/disk-cleanup for an overview.
|
3
3
|
#
|
4
4
|
# * Execute this script to register the handler
|
5
5
|
# * Start the "disk cleanup" tool - look for "pywin32 compiled files"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This is a port of the Vista SDK "FolderView" sample, and associated
|
2
|
-
# notes at http://shellrevealed.com/blogs/shellblog/archive/2007/03/15/Shell-Namespace-Extension_3A00_-Creating-and-Using-the-System-Folder-View-Object.aspx
|
2
|
+
# notes at https://web.archive.org/web/20081225011615/http://shellrevealed.com/blogs/shellblog/archive/2007/03/15/Shell-Namespace-Extension_3A00_-Creating-and-Using-the-System-Folder-View-Object.aspx
|
3
3
|
# A key difference to shell_view.py is that this version uses the default
|
4
4
|
# IShellView provided by the shell (via SHCreateShellFolderView) rather
|
5
5
|
# than our own.
|
@@ -529,7 +529,7 @@ class ContextMenu:
|
|
529
529
|
|
530
530
|
def InvokeCommand(self, ci):
|
531
531
|
mask, hwnd, verb, params, dir, nShow, hotkey, hicon = ci
|
532
|
-
# this seems very
|
532
|
+
# this seems very convoluted, but it's what the sample does :)
|
533
533
|
for verb_name, verb_id, flag in folderViewImplContextMenuIDs:
|
534
534
|
if isinstance(verb, int):
|
535
535
|
matches = verb == verb_id
|