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/source | |
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/source')
-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 |
4 files changed, 9 insertions, 6 deletions
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: |