diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-10-26 22:13:33 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-10-26 22:16:08 +0200 |
commit | aa70294ffc0abbeeb30b4c4001e4db8b3539bf75 (patch) | |
tree | 225914ab32f8c72269b06b82de20cf7e959600e4 /pyuno | |
parent | 22d0970e690d7a623619a84d5054b6f92b7acea4 (diff) |
normalize existing emacs/vim mode-lines in python files
Bunch of these were setting C++ or Make modes and icky tabs...
Also, reportedly Emacs can figure out to enable python-mode
automatically.
Change-Id: I50072488fb92cb4d27aa3f74f717a28ae3967543
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/demo/biblioaccess.py | 4 | ||||
-rw-r--r-- | pyuno/demo/hello_world_comp.py | 4 | ||||
-rw-r--r-- | pyuno/demo/ooextract.py | 4 | ||||
-rw-r--r-- | pyuno/demo/swriter.py | 4 | ||||
-rw-r--r-- | pyuno/demo/swritercomp.py | 4 | ||||
-rw-r--r-- | pyuno/demo/swritercompclient.py | 4 | ||||
-rw-r--r-- | pyuno/source/loader/pythonloader.py | 4 | ||||
-rw-r--r-- | pyuno/source/module/uno.py | 4 | ||||
-rw-r--r-- | pyuno/source/module/unohelper.py | 4 | ||||
-rw-r--r-- | pyuno/source/officehelper.py | 3 |
10 files changed, 21 insertions, 18 deletions
diff --git a/pyuno/demo/biblioaccess.py b/pyuno/demo/biblioaccess.py index bab6ce61116b..0e5d0b4c8071 100644 --- a/pyuno/demo/biblioaccess.py +++ b/pyuno/demo/biblioaccess.py @@ -1,4 +1,4 @@ -# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # @@ -50,4 +50,4 @@ def main(): main() -# vim:set shiftwidth=4 softtabstop=4 expandtab: +# vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/pyuno/demo/hello_world_comp.py b/pyuno/demo/hello_world_comp.py index 73bdc1fc4257..646a124a47b8 100644 --- a/pyuno/demo/hello_world_comp.py +++ b/pyuno/demo/hello_world_comp.py @@ -1,4 +1,4 @@ -# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # @@ -57,4 +57,4 @@ g_ImplementationHelper.addImplementation( \ ("com.sun.star.task.Job",),) # list of implemented services # (the only service) -# vim:set shiftwidth=4 softtabstop=4 expandtab: +# vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/pyuno/demo/ooextract.py b/pyuno/demo/ooextract.py index 477cc8910282..8a364cd4ed62 100644 --- a/pyuno/demo/ooextract.py +++ b/pyuno/demo/ooextract.py @@ -1,4 +1,4 @@ -# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # @@ -126,4 +126,4 @@ def usage(): main() -# vim:set shiftwidth=4 softtabstop=4 expandtab: +# vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/pyuno/demo/swriter.py b/pyuno/demo/swriter.py index 865160a11851..4f3916136c30 100644 --- a/pyuno/demo/swriter.py +++ b/pyuno/demo/swriter.py @@ -1,4 +1,4 @@ -# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # @@ -119,4 +119,4 @@ cursor.setPropertyValue( "CharShadowed", False ) text.insertString( cursor, " That's all for now!" , 0 ) -# vim:set shiftwidth=4 softtabstop=4 expandtab: +# vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/pyuno/demo/swritercomp.py b/pyuno/demo/swritercomp.py index bdebc9f3f94e..3bdd252e4e44 100644 --- a/pyuno/demo/swritercomp.py +++ b/pyuno/demo/swritercomp.py @@ -1,4 +1,4 @@ -# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # @@ -125,4 +125,4 @@ g_ImplementationHelper = unohelper.ImplementationHelper() g_ImplementationHelper.addImplementation( \ SWriterComp,"org.openoffice.comp.pyuno.swriter",("org.openoffice.demo.SWriter",),) -# vim:set shiftwidth=4 softtabstop=4 expandtab: +# vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/pyuno/demo/swritercompclient.py b/pyuno/demo/swritercompclient.py index 4ac9d937db51..c4d6cdbf6a66 100644 --- a/pyuno/demo/swritercompclient.py +++ b/pyuno/demo/swritercompclient.py @@ -1,4 +1,4 @@ -# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # @@ -29,4 +29,4 @@ pyComp = remoteSmgr.createInstanceWithContext( "org.openoffice.demo.SWriter" , r pyComp.run( (), ) -# vim:set shiftwidth=4 softtabstop=4 expandtab: +# vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/pyuno/source/loader/pythonloader.py b/pyuno/source/loader/pythonloader.py index 1d1b7de22652..ddb9001fc0e6 100644 --- a/pyuno/source/loader/pythonloader.py +++ b/pyuno/source/loader/pythonloader.py @@ -1,4 +1,4 @@ -# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # @@ -162,4 +162,4 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ): def getSupportedServiceNames( self ): return g_supportedServices -# vim:set shiftwidth=4 softtabstop=4 expandtab: +# vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/pyuno/source/module/uno.py b/pyuno/source/module/uno.py index 29cc6841131c..bccf22d0f8ac 100644 --- a/pyuno/source/module/uno.py +++ b/pyuno/source/module/uno.py @@ -1,4 +1,4 @@ -# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # @@ -548,4 +548,4 @@ def _uno_extract_printable_stacktrace(trace): return ''.join(traceback.format_tb(trace)) -# vim:set shiftwidth=4 softtabstop=4 expandtab: +# vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/pyuno/source/module/unohelper.py b/pyuno/source/module/unohelper.py index a55aaa8483fa..e1e7e35b641c 100644 --- a/pyuno/source/module/unohelper.py +++ b/pyuno/source/module/unohelper.py @@ -1,4 +1,4 @@ -# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # @@ -294,4 +294,4 @@ class _FactoryHelper_( XSingleComponentFactory, XServiceInfo, Base ): def createInstanceWithArgumentsAndContext( self, args, context ): return self.clazz( context, *args ) -# vim:set shiftwidth=4 softtabstop=4 expandtab: +# vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/pyuno/source/officehelper.py b/pyuno/source/officehelper.py index 0b0bb68af5e5..53bd5943e3c0 100644 --- a/pyuno/source/officehelper.py +++ b/pyuno/source/officehelper.py @@ -1,3 +1,4 @@ +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # @@ -82,3 +83,5 @@ def bootstrap(): raise BootstrapException("Caught exception " + str(e), None) return xContext + +# vim: set shiftwidth=4 softtabstop=4 expandtab: |