Minor fixes#1965
Conversation
Property 'dispid's only found by __AttrToID__() / GetIDsOfNames() were not cached in propMap and caused time consuming search upon every read.
|
Thanks. Any chance you could split this into one with no functional changes and one where the behavior is changed? Some of the COM ones I'd need to dig deeper in to but some are 100% cosmetic. |
and remove __cmp__ for Python3. __eq__, __lt__ are already defined in base class HLIPythonObject.
Undefined name 'argparse' in verify_destination()
Search `path + os.pathsep`, not `os.pathsep + path`. (Caused duplicate entry when already at the beginning)
for Python 3
`disp.__dict__.get("CLSID")` was always None. Triggered
repeated search and recapture every time.
|
Removed the changes with no functional effect (mainly unused imports and variables) |
|
Thanks - but I was hoping the changes without functional effect were uploaded as I'd land them - eg, the freeing of a variable isn't controversial so I'd be fine landing that (as well as unused imports which you said you removed). But the ones like the removal of |
I've parked the few de-lints in a new branch, but think its too small and low priority for a PR and will push occasionally with more. (It mainly disturbed getting a clean lint status on edited files - new unused stuff is often an error)
|
|
@kxrob A handful of these changes have been included as part of old code refactoring I've been doing to prepare for type annotations. I think that if you resolve conflicts you'll find this PR to be even smaller than before :) |
| retEntry = self._olerepr_.propMapGet.get(attr) | ||
| if retEntry is None: | ||
| retEntry = build.MapEntry(self.__AttrToID__(attr), (attr,)) | ||
| self._olerepr_.propMap[attr] = retEntry |
No description provided.