From 3f9c03bd82ac97e7322bb0932f690e0dfb054aac Mon Sep 17 00:00:00 2001 From: GregF Date: Fri, 27 Oct 2017 15:39:45 -0600 Subject: [PATCH] Add python3 compatibility to update_glslang_sources.py --- update_glslang_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_glslang_sources.py b/update_glslang_sources.py index b2988f92..331a3011 100755 --- a/update_glslang_sources.py +++ b/update_glslang_sources.py @@ -141,7 +141,7 @@ def main(): # Create the subdirectories in sorted order so that parent git repositories # are created first. - for c in sorted(commits, cmp=lambda x,y: cmp(x.subdir, y.subdir)): + for c in sorted(commits, key=lambda x: x.subdir): print('Get {n}\n'.format(n=c.name)) c.Checkout() sys.exit(0)