Mercurial > public > mercurial-scm > hg-stable
diff contrib/import-checker.py @ 32331:bd872f64a8ba
cleanup: use set literals
We no longer support Python 2.6, so we can now use set literals.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 10 Feb 2017 16:56:29 -0800 |
parents | 65cd7e705ff6 |
children | a9c71d578a1c |
line wrap: on
line diff
--- a/contrib/import-checker.py Sat May 06 04:51:25 2017 +0530 +++ b/contrib/import-checker.py Fri Feb 10 16:56:29 2017 -0800 @@ -213,7 +213,7 @@ yield m for m in ['cffi']: yield m - stdlib_prefixes = set([sys.prefix, sys.exec_prefix]) + stdlib_prefixes = {sys.prefix, sys.exec_prefix} # We need to supplement the list of prefixes for the search to work # when run from within a virtualenv. for mod in (BaseHTTPServer, zlib):