tools/stable_backport.py: only create compat dir when writing file
For some reason, pylint generates import errors like "cannot import modules.xxx.browser" which created a compat/ dir but nothing was written in it (apart from __init__.py). Now, we only create the compat/ dir when about to write a real file in it.
parent
ee4bf4dd
Please register or sign in to comment