This is the result of a batch reindent.py across our tree.
As Martin pointed out, we ought to be more careful and
create a pre-svn commit script to avoid inserting trash
in the tree, meanwhile, this is a good start to cleanup
things
Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3487 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/cli/change_protection_level.py b/cli/change_protection_level.py
index 0807878..0e6598d 100755
--- a/cli/change_protection_level.py
+++ b/cli/change_protection_level.py
@@ -21,13 +21,13 @@
hosts = afe_proxy.run('get_hosts', hostname__in=leftover_args[1:])
for host in hosts:
- try:
- afe_proxy.run('modify_host', host['id'], protection=protection_level)
- except Exception, exc:
- print 'For host %s:', host['hostname']
- traceback.print_exc()
- else:
- print 'Host %s succeeded' % host['hostname']
+ try:
+ afe_proxy.run('modify_host', host['id'], protection=protection_level)
+ except Exception, exc:
+ print 'For host %s:', host['hostname']
+ traceback.print_exc()
+ else:
+ print 'Host %s succeeded' % host['hostname']
print 'Invalid hosts:'
print ','.join(set(leftover_args[1:]) - set(host['hostname'] for host in hosts))
diff --git a/cli/label_unittest.py b/cli/label_unittest.py
index 3b25777..817a340 100755
--- a/cli/label_unittest.py
+++ b/cli/label_unittest.py
@@ -109,7 +109,7 @@
{'name': 'label1', 'platform': False,
'only_if_needed': False},
False,
- '''ValidationError: {'name':
+ '''ValidationError: {'name':
'This value must be unique (label0)'}''')],
out_words_ok=['Created', 'label0'],
out_words_no=['label1'],
diff --git a/cli/threads.py b/cli/threads.py
index 999adb4..7738b0a 100755
--- a/cli/threads.py
+++ b/cli/threads.py
@@ -1,5 +1,5 @@
#
-# Copyright 2008 Google Inc.
+# Copyright 2008 Google Inc.
# Released under the GPLv2
import threading, Queue
diff --git a/cli/topic_common.py b/cli/topic_common.py
index 1e1e08c..2fbacc4 100755
--- a/cli/topic_common.py
+++ b/cli/topic_common.py
@@ -285,7 +285,7 @@
# Build a dictionary with the 'what_failed' as keys. The
# values are dictionaries with the errmsg as keys and a set
# of items as values.
- # self.failed =
+ # self.failed =
# {'Operation delete_host_failed': {'AclAccessViolation:
# set('host0', 'host1')}}
# Try to gather all the same error messages together,
diff --git a/cli/topic_common_unittest.py b/cli/topic_common_unittest.py
index 1021f80..5f4284e 100755
--- a/cli/topic_common_unittest.py
+++ b/cli/topic_common_unittest.py
@@ -252,7 +252,7 @@
class opt(object):
flist_obj = cli_mock.create_file('a b c\nd,e\nf\ng, \n, ,,')
flist = flist_obj.name
- inline = 'a b,c,d h, , ,, '
+ inline = 'a b,c,d h, , ,, '
self.__test_parsing_all_good(opt(), ['i','j,d'],
['a', 'b', 'c', 'd', 'e',
'f', 'g', 'h', 'i', 'j'])