[sos-devel] [PATCH] Modify vim tags across multiple python source files

Kamalesh Babulal kamalesh at linux.vnet.ibm.com
Tue Jul 7 05:12:32 UTC 2015


Hi Bryn,

Thanks for explaining it. I had obviously, mis-understood it to
be typo in vim syntax. I have fixed it in remaining sources files
also, to keep in consistency of the footer across the project.

-- >8 --

Modify/Introduce vim tags syntax to set expand tab and modeline
across multiple python sources files.

Signed-off-by: Kamalesh Babulal <kamalesh at linux.vnet.ibm.com>
Cc: Bryn M. Reeves <bmr at redhat.com>
---
 sos/__init__.py                     | 2 ++
 sos/__init__.py.in                  | 2 ++
 sos/plugins/activemq.py             | 2 ++
 sos/plugins/chrony.py               | 2 +-
 sos/plugins/iprconfig.py            | 2 ++
 sos/plugins/openstack_sahara.py     | 2 +-
 sos/plugins/puppet.py               | 3 ++-
 sos/plugins/saphana.py              | 2 +-
 sos/plugins/sapnw.py                | 2 +-
 sos/plugins/subscription_manager.py | 2 +-
 sos/plugins/ubuntu.py               | 2 ++
 sos/policies/ibmkvm.py              | 2 +-
 12 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/sos/__init__.py b/sos/__init__.py
index 066e118..9c892a1 100644
--- a/sos/__init__.py
+++ b/sos/__init__.py
@@ -35,3 +35,5 @@ def _default(msg):
     return gettext.dgettext(gettext_app, msg)
 
 _sos = _default
+
+# vim: set et ts=4 sw=4 :
diff --git a/sos/__init__.py.in b/sos/__init__.py.in
index 9d2903f..b35c344 100644
--- a/sos/__init__.py.in
+++ b/sos/__init__.py.in
@@ -34,3 +34,5 @@ def _default(msg):
     return gettext.dgettext(gettext_app, msg)
 
 _sos = _default
+
+# vim: set et ts=4 sw=4 :
diff --git a/sos/plugins/activemq.py b/sos/plugins/activemq.py
index 1594229..a08e8b3 100644
--- a/sos/plugins/activemq.py
+++ b/sos/plugins/activemq.py
@@ -61,3 +61,5 @@ class UbuntuActiveMq(ActiveMq, UbuntuPlugin):
             '/etc/activemq',
             '/etc/default/activemq'
         ])
+
+# vim: set et ts=4 sw=4 :
diff --git a/sos/plugins/chrony.py b/sos/plugins/chrony.py
index d2404d4..d3a648f 100644
--- a/sos/plugins/chrony.py
+++ b/sos/plugins/chrony.py
@@ -37,4 +37,4 @@ class Chrony(Plugin, RedHatPlugin):
             "journalctl -u chronyd"
         ])
 
-# vim: et ts=4 sw=4
+# vim: set et ts=4 sw=4 :
diff --git a/sos/plugins/iprconfig.py b/sos/plugins/iprconfig.py
index 687d8d5..0384544 100644
--- a/sos/plugins/iprconfig.py
+++ b/sos/plugins/iprconfig.py
@@ -108,3 +108,5 @@ class IprConfig(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
                         # temp[0] holds device name
                         self.add_cmd_output("iprconfig -c "
                                             "query-ses-mode %s" % (temp[0],))
+
+# vim: set et ts=4 sw=4 :
diff --git a/sos/plugins/openstack_sahara.py b/sos/plugins/openstack_sahara.py
index 9d971ba..15ae9e0 100644
--- a/sos/plugins/openstack_sahara.py
+++ b/sos/plugins/openstack_sahara.py
@@ -71,4 +71,4 @@ class RedHatOpenStackSahara(OpenStackSahara, RedHatPlugin):
         self.add_copy_spec("/etc/sudoers.d/sahara")
 
 
-# vim: et ts=4 sw=4
+# vim: set et ts=4 sw=4 :
diff --git a/sos/plugins/puppet.py b/sos/plugins/puppet.py
index 4da95a2..4e7416a 100644
--- a/sos/plugins/puppet.py
+++ b/sos/plugins/puppet.py
@@ -40,4 +40,5 @@ class Puppet(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
             )
 
         return
-# vim: et ts=4 sw=4
+
+# vim: set et ts=4 sw=4 :
diff --git a/sos/plugins/saphana.py b/sos/plugins/saphana.py
index 2ff26f5..ff5b946 100644
--- a/sos/plugins/saphana.py
+++ b/sos/plugins/saphana.py
@@ -81,4 +81,4 @@ class saphana(Plugin, RedHatPlugin):
                                     % (sid, inst)
                                 )
 
-# vim: et ts=4 sw=4
+# vim: set et ts=4 sw=4 :
diff --git a/sos/plugins/sapnw.py b/sos/plugins/sapnw.py
index e18978f..93b5f57 100644
--- a/sos/plugins/sapnw.py
+++ b/sos/plugins/sapnw.py
@@ -141,4 +141,4 @@ class sapnw(Plugin, RedHatPlugin):
             self.add_cmd_output(
                 "/usr/bin/sapconf -n", suggest_filename="sapconf_checkmode")
 
-# vim: et ts=4 sw=4
+# vim: set et ts=4 sw=4 :
diff --git a/sos/plugins/subscription_manager.py b/sos/plugins/subscription_manager.py
index 8ba65d8..4070429 100644
--- a/sos/plugins/subscription_manager.py
+++ b/sos/plugins/subscription_manager.py
@@ -40,4 +40,4 @@ class SubscriptionManager(Plugin, RedHatPlugin):
                             "--no-subscriptions --destination %s"
                             % self.get_cmd_output_path())
 
-# vim: et ts=4 sw=4
+# vim: set et ts=4 sw=4 :
diff --git a/sos/plugins/ubuntu.py b/sos/plugins/ubuntu.py
index 05efea5..6695a0a 100644
--- a/sos/plugins/ubuntu.py
+++ b/sos/plugins/ubuntu.py
@@ -35,3 +35,5 @@ class Ubuntu(Plugin, UbuntuPlugin):
 
         self.add_cmd_output(" ".join(cmd),
                             suggest_filename='ubuntu-support-status.txt')
+
+# vim: set et ts=4 sw=4 :
diff --git a/sos/policies/ibmkvm.py b/sos/policies/ibmkvm.py
index ff05953..d8420eb 100644
--- a/sos/policies/ibmkvm.py
+++ b/sos/policies/ibmkvm.py
@@ -74,4 +74,4 @@ class ZKVMPolicy(RedHatPolicy):
             return False
 
 
-# vim: set ts=4 sw=4
+# vim: set et ts=4 sw=4 :
-- 
2.1.2




More information about the sos-devel mailing list