[meld] PEP8
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] PEP8
- Date: Thu, 18 Apr 2013 21:01:21 +0000 (UTC)
commit 00fd8002183a936cb228b239d0c61d608a137c6a
Author: Kai Willadsen <kai willadsen gmail com>
Date: Fri Apr 19 06:54:34 2013 +1000
PEP8
meld/melddoc.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/meld/melddoc.py b/meld/melddoc.py
index 52a7bb1..b3d8de0 100644
--- a/meld/melddoc.py
+++ b/meld/melddoc.py
@@ -99,8 +99,9 @@ class MeldDoc(gobject.GObject):
elif file_type == gio.FILE_TYPE_REGULAR:
content_type = info.get_content_type()
path = source.get_path()
- # content_type_is_a does not seem to work on windows
- if gio.content_type_is_a(content_type, "text/plain") or sys.platform == "win32":
+ # FIXME: Content types are broken on Windows with current gio
+ if gio.content_type_is_a(content_type, "text/plain") or \
+ sys.platform == "win32":
editor = self.prefs.get_editor_command(path, line)
if editor:
subprocess.Popen(editor)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]