Page MenuHomePhabricator

Avoid ResourceWarning using subprocess in python 3.6
Closed, ResolvedPublic

Description

user@pc:~/python/core {master}$ py36 scripts/listpages.py -prefixindex:User:Mpaa 
WARNING: /home/user/anaconda3/lib/python3.6/subprocess.py:761: ResourceWarning: subprocess 2582 is still running
WARNING: /home/user/anaconda3/lib/python3.6/subprocess.py:761: ResourceWarning: subprocess 2583 is still running
   1 Mpaa
   ...
  21 MpaaBot
21 page(s) found

See https://docs.python.org/dev/whatsnew/3.6.html#warnings

Event Timeline

Change 341201 had a related patch set uploaded (by mpaa):
[pywikibot/core] Avoid ResourceWarning using subprocess in python 3.6

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

Change 341201 merged by jenkins-bot:
[pywikibot/core] Avoid ResourceWarning using subprocess in python 3.6

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

Mpaa claimed this task.