Page MenuHomePhabricator

weblinkchecker imports both config and config2
Closed, ResolvedPublic

Description

config2 should be preferable imported due to circular Imports but not both

Event Timeline

Hey there, I would like to tackle this task but I need some assistance for the same. So would you help me to get started with solving this?

@Homeboy_445: Sure. If you have any questions, just ask.

So do I have to remove the config import from the weblinkchecker.py?

So do I have to remove the config import from the weblinkchecker.py?

Yes but you have to rename their usage. I propose to Import config2 as config and rename the config2 usage to config e.g.

from pywikibot import config2 as config

the replace all occurences of config2 to config

Okay got it! So my task is to import config2 as config and rename config2's usage to config. I'm on it and will let you know as soon as its done!

Okay got it! So my task is to import config2 as config and rename config2's usage to config. I'm on it and will let you know as soon as its done!

Yes. Thanks in advance for your contribution.

Change 638097 had a related patch set uploaded (by Homeboy 445; owner: Homeboy 445):
[pywikibot/core@master] imported config2 as config and renamed config2 as config

https://gerrit.wikimedia.org/r/638097

Change 638097 had a related patch set uploaded (by Homeboy 445; owner: Homeboy 445):
[pywikibot/core@master] imported config2 as config and renamed config2 as config

https://gerrit.wikimedia.org/r/638097

Change 638097 merged by jenkins-bot:
[pywikibot/core@master] imported config2 as config and renamed config2 as config

https://gerrit.wikimedia.org/r/638097

@Xqt Thank you so very much for bearing with me.