NameError: global name 'ResourceWarning' is not defined

Traceback (most recent call last):

File "/edx/app/edxapp/edx-platform/manage.py", line 17, in <module>

log_python_warnings()

File "/edx/app/edxapp/edx-platform/openedx/core/lib/logsettings.py", line 125, in log_python_warnings

warnings.filterwarnings('ignore', '.*unclosed.*', category=ResourceWarning)

NameError: global name 'ResourceWarning' is not defined

Hey @gao_yu,
you would not expect to get a good detailed answer when you did not ask a question.
you should provide a description about your problem and the situation you were when the trouble appeared.

Are you using python2.7?

It seems that ResourceWarning is available since python3.2