(grafted from cc8ffd818eb743822ca9014abe4f6cc2f1af5596) --HG-- branch : 7.0
root_dir argument has been added since Python 3.10