Merge pull request #1133 from greg-lunarg/kg2

Add python3 compatibility to update_glslang_sources.py
This commit is contained in:
John Kessenich 2017-10-28 02:03:09 -06:00 committed by GitHub
commit a63622286f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)