diff options
author | Sorokin Alexei <[email protected]> | 2016-03-04 17:45:14 +0300 |
---|---|---|
committer | Sorokin Alexei <[email protected]> | 2016-03-04 17:45:14 +0300 |
commit | 3710f2d441a11b066441a743331d3981d741ec45 (patch) | |
tree | 129f88740c899c87b9f32fdc7c76d201bb54666b /Mozo | |
parent | 7d515ef958e37d1a6044699a8e930fd10f649063 (diff) | |
download | mozo-3710f2d441a11b066441a743331d3981d741ec45.tar.bz2 mozo-3710f2d441a11b066441a743331d3981d741ec45.tar.xz |
fix use of spaces/tabs inconsistency in formatting
Diffstat (limited to 'Mozo')
-rw-r--r-- | Mozo/MainWindow.py | 4 | ||||
-rw-r--r-- | Mozo/MenuEditor.py | 2 |
2 files changed, 3 insertions, 3 deletions
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 += '/' |