Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_writer_class supporting multi-level module names [SF:feature-requests:67] #580

Open
chrisjsewell opened this issue Aug 9, 2020 · 0 comments

Comments

@chrisjsewell
Copy link
Owner

author: uyar
created: 2020-01-28 12:17:32.721000
assigned: None
SF_url: https://sourceforge.net/p/docutils/feature-requests/67

Say my project has a Writer class in the file a/b/c.py. I can not refer to this writer using get_writer_class('a.b.c') because get_writer_class uses __import__ for importing the module and __import__('a.b.c') returns a in this case. Using importlib.import_module instead of __import__ would fix this and it is also the way that the help message for __import__ recommends.


commenter: milde
posted: 2020-01-30 12:32:06.304000
title: #67 get_writer_class supporting multi-level module names

  • status: open --> open-accepted

commenter: milde
posted: 2020-01-30 12:32:06.786000
title: #67 get_writer_class supporting multi-level module names

Implemented in revision 8478.
Thanks for reporting.


commenter: milde
posted: 2020-03-03 21:36:28.938000
title: #67 get_writer_class supporting multi-level module names

  • status: open-accepted --> open-fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant