From 3710f2d441a11b066441a743331d3981d741ec45 Mon Sep 17 00:00:00 2001 From: Sorokin Alexei Date: Fri, 4 Mar 2016 17:45:14 +0300 Subject: fix use of spaces/tabs inconsistency in formatting --- Mozo/MainWindow.py | 4 ++-- Mozo/MenuEditor.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Mozo') diff --git a/Mozo/MainWindow.py b/Mozo/MainWindow.py index df9ebfa..ca2be27 100644 --- a/Mozo/MainWindow.py +++ b/Mozo/MainWindow.py @@ -558,8 +558,8 @@ class MainWindow: if content_type == 'application/x-desktop': input_stream = myfile.read() (fd, tmppath) = tempfile.mkstemp(prefix='mozo-dnd', suffix='.desktop') - with open(fd, "w") as f: - f.write(input_stream.read()) + with open(fd, "w") as f: + f.write(input_stream.read()) parser = util.DesktopParser(tmppath) self.editor.createItem(parent, parser.get('Icon'), parser.get('Name', self.editor.locale), parser.get('Comment', self.editor.locale), parser.get('Exec'), parser.get('Terminal'), before, after) elif content_type in ('application/x-shellscript', 'application/x-executable'): diff --git a/Mozo/MenuEditor.py b/Mozo/MenuEditor.py index 73d6549..66e4d74 100644 --- a/Mozo/MenuEditor.py +++ b/Mozo/MenuEditor.py @@ -478,7 +478,7 @@ class MenuEditor: def __getPath(self, menu, path=None): if not path: - path = menu.tree.root.get_menu_id() + path = menu.tree.root.get_menu_id() if menu.get_parent(): path = self.__getPath(menu.get_parent(), path) path += '/' -- cgit v1.2.1