diff options
author | Michael Bishop <mbtyke@gmail.com> | 2013-05-24 14:48:33 -0400 |
---|---|---|
committer | Michael Bishop <mbtyke@gmail.com> | 2013-05-24 14:48:33 -0400 |
commit | 1fa15abb03e0e2c40761a3226b60d3f8a3e96231 (patch) | |
tree | fb216cb8dcbc1b6b0c671c30e0f04490a8a827bc | |
parent | c5fb79f031969c58bf9281e9b7b339076ca6a3c2 (diff) |
Simplified code by using a tuple in combination with `endsWith`.
-rwxr-xr-x | emcc | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -629,9 +629,8 @@ header = False # pre-compiled headers. We fake that by just copying the file for i in range(1, len(sys.argv)): arg = sys.argv[i] if not arg.startswith('-'): - for extension in ['.c','.m']: - if arg.endswith(extension): - use_cxx = False + if arg.endswith(('.c','.m')): + use_cxx = False if arg.endswith('.h') and sys.argv[i-1] != '-include': header = True |