144
145 :return: pywikibot module version string
146 """
147 # import metadata148 metadata = _DottedDict()
149 with open(path / name / '__metadata__.py') as f:
150 exec(f.read(), None, metadata)
1110 uinfo = self.site.userinfo
1111 error['current user'] = uinfo['name']
1112
1113 # raise error1114 try:
1115 param_repr = str(self._params)
1116 pywikibot.log(
469show_authors = True
470todo_include_todos = True
471autodoc_typehints = 'description'
472# autosectionlabel_prefix_document = True473suppress_warnings = ['autosectionlabel.*']
474toc_object_entries_show_parents = 'hide'
475
1148 'The specified page is not a redirect. Skipping.')
1149 return False
1150 elif self.opt.just:
1151 # not page.isRedirectPage() or self.opt.primary1152 try:
1153 if self.opt.primary:
1154 try:
155
156if __name__ == '__main__':
157 chars, uppers, wikilinks = chars_uppers_wikilinks()
158 # save_json({'chars': chars, 'uppers': uppers, 'wikilinks': wikilinks},159 # 'user-temp-save.json')
160 # j = load_json('user-temp-save.json')
161 # chars, uppers, wikilinks = j['chars'], j['uppers'], j['wikilinks']
It is recommended to remove any commented code in your codebase.
for item in sequence:
# print(item)
do_something(item)
# def old_function():
# '''Older implementation that has been replaced'''
# data = get_data()
# api.post(data)
for item in sequence:
do_something(item)