summaryrefslogtreecommitdiffstats
path: root/lldb/utils/sync-source/syncsource.py
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-11-03 21:01:45 +0000
committerZachary Turner <zturner@google.com>2015-11-03 21:01:45 +0000
commit9618980a19d4234d93dd69f92f6b875e72b89a1b (patch)
tree4a3bc6082b7355a4ed6f4a929f28f32ec852e961 /lldb/utils/sync-source/syncsource.py
parentc8a7913f23460112182b5216fa2cde084886cad4 (diff)
downloadbcm5719-llvm-9618980a19d4234d93dd69f92f6b875e72b89a1b.tar.gz
bcm5719-llvm-9618980a19d4234d93dd69f92f6b875e72b89a1b.zip
Python 3: Modernize exception raising syntax.
Old-style: `raise foo, bar` New-style: `raise foo(bar)` These two statements are equivalent, but the former is an error in Python 3. llvm-svn: 251977
Diffstat (limited to 'lldb/utils/sync-source/syncsource.py')
-rw-r--r--lldb/utils/sync-source/syncsource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/utils/sync-source/syncsource.py b/lldb/utils/sync-source/syncsource.py
index 409d72c3087..736aefd9a35 100644
--- a/lldb/utils/sync-source/syncsource.py
+++ b/lldb/utils/sync-source/syncsource.py
@@ -234,7 +234,7 @@ def sync_configured_sources(options, configuration, default_excludes):
if len(transfer_specs) > 0:
transfer_agent.transfer(transfer_specs, options.dry_run)
else:
- raise "nothing to transfer, bad configuration?"
+ raise Exception("nothing to transfer, bad configuration?")
def main():
OpenPOWER on IntegriCloud