Mercurial > hg-stable
changeset 32320:9b81fb217820
py3: remove delayed import of importlib
All supported versions of Python now have importlib. This
effectively reverts b85fa6bf298b.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 13 May 2017 11:55:39 -0700 |
parents | 68c43a416585 |
children | c34532365b38 |
files | contrib/check-py3-compat.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/check-py3-compat.py Sat May 13 11:52:44 2017 -0700 +++ b/contrib/check-py3-compat.py Sat May 13 11:55:39 2017 -0700 @@ -10,6 +10,7 @@ from __future__ import absolute_import, print_function import ast +import importlib import os import sys import traceback @@ -50,7 +51,6 @@ def check_compat_py3(f): """Check Python 3 compatibility of a file with Python 3.""" - import importlib # not available on Python 2.6 with open(f, 'rb') as fh: content = fh.read()