diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-06 17:16:21 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-06 17:16:21 +0000 |
commit | 1069ec49a35d04c1e85c92534e92a2d6aa59cb75 (patch) | |
tree | b7b30e337835fdb5ba31263798c558c291bf0b88 /scripts/xy_grid.py | |
parent | 0bb458f0ca06a7be27cf1a1003c536d1f06a5bd3 (diff) | |
download | stable-diffusion-webui-gfx803-1069ec49a35d04c1e85c92534e92a2d6aa59cb75.tar.gz stable-diffusion-webui-gfx803-1069ec49a35d04c1e85c92534e92a2d6aa59cb75.tar.bz2 stable-diffusion-webui-gfx803-1069ec49a35d04c1e85c92534e92a2d6aa59cb75.zip |
revert back to using list comprehension rather than list and map
Diffstat (limited to 'scripts/xy_grid.py')
-rw-r--r-- | scripts/xy_grid.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/xy_grid.py b/scripts/xy_grid.py index 210c7b6e..6344e612 100644 --- a/scripts/xy_grid.py +++ b/scripts/xy_grid.py @@ -197,7 +197,7 @@ class Script(scripts.Script): if opt.label == 'Nothing':
return [0]
- valslist = list(map(str.strip,chain.from_iterable(csv.reader(StringIO(vals)))))
+ valslist = [x.strip() for x in chain.from_iterable(csv.reader(StringIO(vals)))]
if opt.type == int:
valslist_ext = []
|