diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-03-20 16:23:35 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-03-20 16:23:35 +0100 |
| commit | c67ea9f62e9e22a53c0bd936e0c064d38691f364 (patch) | |
| tree | 4ddfc3fdf7554c53ee19a800c154395e32f7eb3a | |
| parent | eb9619bf1c40a0d3bb791ae984e992b66d6d25b2 (diff) | |
Use iglob() rather than glob()
No need to create a list. glob() just does list(iglob()) internally as
well.
| -rw-r--r-- | kconfiglib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index b0e146d..fc8b308 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1871,7 +1871,7 @@ class Kconfig(object): # Sort the glob results to ensure a consistent ordering of # Kconfig symbols, which indirectly ensures a consistent # ordering in e.g. .config files - for filename in sorted(glob.glob(pattern)): + for filename in sorted(glob.iglob(pattern)): if self.srctree is not None and not os.path.isabs(filename): # Strip the $srctree prefix from the filename and let # the normal $srctree logic find the file. This makes |
