Permalink
Browse files

Correct concatenation of lists in cc_args.py

Closes #145. Make it compatible with Python 2.x and Python 3.x
at the same time.
  • Loading branch information...
1 parent 4162272 commit f4c5cdc252ba75991f6e63d14e181da5b74b76f2 @xaizek xaizek committed May 2, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/cc_args.py
View
6 bin/cc_args.py
@@ -55,9 +55,9 @@ def parseArguments(arguments):
elif arg == "-include":
nextIsIncludeFile = True
- result = map(lambda x: "-I" + x, includes)
- result += map(lambda x: "-D" + x, defines)
- result += map(lambda x: "-include " + x, include_file)
+ result = list(map(lambda x: "-I" + x, includes))
+ result.extend(map(lambda x: "-D" + x, defines))
+ result.extend(map(lambda x: "-include " + x, include_file))
return result

0 comments on commit f4c5cdc

Please sign in to comment.