From a656ed31c7e567d4dd35a738d395739a262105ad Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 12 Aug 2019 05:25:59 +0200 Subject: [PATCH] squash: only assume that split is a enumerable --- tools/js2c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/js2c.py b/tools/js2c.py index 0e82317505d687..1346b2a87046d3 100755 --- a/tools/js2c.py +++ b/tools/js2c.py @@ -261,7 +261,7 @@ def NormalizeFileName(filename): split = ['internal'] + split else: # `lib/**/*.js` so drop the 'lib' part split = split[1:] - if split != []: + if len(split): filename = '/'.join(split) return os.path.splitext(filename)[0]