Open
Conversation
with argument parser !
add versionoption
régler le problème de suffixe dans getaddoption
excepté la traduction, ajout de l'utilisation de argparse à la place optionparse.
Fixed an infinite loop issue in fs_poller.py with base.py.
try to change with starofrainning's code
freedomsha
commented
Jun 21, 2024
| @@ -289,13 +304,14 @@ def _get_modpkg_path(dotted_name, pathlist=None): | |||
| extension module. | |||
| """ | |||
| # split off top-most name | |||
| parts = dotted_name.split('.', 1) | |||
| parts = dotted_name.split(".", 1) | |||
|
|
|||
| if len(parts) > 1: | |||
| # we have a dotted path, import top-level package | |||
| try: | |||
| file, pathname, description = imp.find_module(parts[0], pathlist) | |||
Author
There was a problem hiding this comment.
why imp.find_module() is not changed.
https://docs.python.org/3.11/library/imp.html :
Deprecated since version 3.3: Use importlib.util.find_spec() instead unless Python 3.3 compatibility is required, in which case use importlib.find_loader(). For example usage of the former case, see the Examples section of the importlib documentation.
need docstring
not NewUdRef but ID_ANY
TODO : a revoir unicode/byte lecture/écriture.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To obtain a usable taskcoach