Index: pylib/gyp/xcode_ninja.py |
diff --git a/pylib/gyp/xcode_ninja.py b/pylib/gyp/xcode_ninja.py |
index bc76ffff4e9b58490903a4122b93065dad88fa89..1d71b8c5f8900648c41fc23e1522f28264af20f0 100644 |
--- a/pylib/gyp/xcode_ninja.py |
+++ b/pylib/gyp/xcode_ninja.py |
@@ -28,7 +28,7 @@ def _WriteWorkspace(main_gyp, sources_gyp, params): |
workspace_path = os.path.join(options.generator_output, workspace_path) |
try: |
os.makedirs(workspace_path) |
- except OSError, e: |
+ except OSError as e: |
if e.errno != errno.EEXIST: |
raise |
output_string = '<?xml version="1.0" encoding="UTF-8"?>\n' + \ |
@@ -85,7 +85,7 @@ def _TargetFromSpec(old_spec, params): |
"%s/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)" % ninja_toplevel |
if 'configurations' in old_spec: |
- for config in old_spec['configurations'].iterkeys(): |
+ for config in old_spec['configurations'].keys(): |
old_xcode_settings = \ |
old_spec['configurations'][config].get('xcode_settings', {}) |
if 'IPHONEOS_DEPLOYMENT_TARGET' in old_xcode_settings: |
@@ -167,7 +167,7 @@ def CreateWrapper(target_list, target_dicts, data, params): |
params: Dict of global options for gyp. |
""" |
orig_gyp = params['build_files'][0] |
- for gyp_name, gyp_dict in data.iteritems(): |
+ for gyp_name, gyp_dict in data.items(): |
if gyp_name == orig_gyp: |
depth = gyp_dict['_DEPTH'] |
@@ -238,7 +238,7 @@ def CreateWrapper(target_list, target_dicts, data, params): |
not generator_flags.get('xcode_ninja_list_excluded_files', True) |
sources = [] |
- for target, target_dict in target_dicts.iteritems(): |
+ for target, target_dict in target_dicts.items(): |
base = os.path.dirname(target) |
files = target_dict.get('sources', []) + \ |
target_dict.get('mac_bundle_resources', []) |