diff options
author | Petr Viktorin <pviktori@redhat.com> | 2015-08-12 13:49:54 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-09-01 11:42:01 +0200 |
commit | d1187cbc6ffc855e1bd42cd65110ba0567293ce6 (patch) | |
tree | a0fb75e5cd7db6e4e19632710a91a536f6f11f0b /ipa-client | |
parent | 8de13bd7dd76f5f5b23d6e4fb84be1a2f1dc5c5e (diff) | |
download | freeipa-d1187cbc6ffc855e1bd42cd65110ba0567293ce6.tar.gz freeipa-d1187cbc6ffc855e1bd42cd65110ba0567293ce6.tar.xz freeipa-d1187cbc6ffc855e1bd42cd65110ba0567293ce6.zip |
Use new-style raise syntax
The form`raise Error, value` is deprecated in favor of `raise Error(value)`,
and will be removed in Python 3.
Use the new syntax.
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipa-client')
-rw-r--r-- | ipa-client/ipaclient/ipachangeconf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-client/ipaclient/ipachangeconf.py b/ipa-client/ipaclient/ipachangeconf.py index 58679f3de..a1ebb4f63 100644 --- a/ipa-client/ipaclient/ipachangeconf.py +++ b/ipa-client/ipaclient/ipachangeconf.py @@ -217,7 +217,7 @@ class IPAChangeConf: break if 'delim' not in o: - raise SyntaxError, 'Syntax Error: Unknown line format' + raise SyntaxError('Syntax Error: Unknown line format') o.update({'name':parts[0].strip(), 'type':'option', 'value':parts[1].rstrip()}) return o |