mercurial/util.py
changeset 44452 9d2b2df2c2ba
parent 44436 09f3e003fc2a
child 44629 d37975386798
--- a/mercurial/util.py	Fri Mar 06 10:52:44 2020 +0100
+++ b/mercurial/util.py	Fri Mar 06 13:27:41 2020 -0500
@@ -2213,7 +2213,7 @@
     '''
 
     def _makefspathcacheentry(dir):
-        return dict((normcase(n), n) for n in os.listdir(dir))
+        return {normcase(n): n for n in os.listdir(dir)}
 
     seps = pycompat.ossep
     if pycompat.osaltsep: