[gedit-plugins/gnome-3-0] synctex: imports should go at the beginning of the file
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins/gnome-3-0] synctex: imports should go at the beginning of the file
- Date: Wed, 27 Jul 2011 21:45:09 +0000 (UTC)
commit f2701f4114a358b10cdb7fe9d9cc234397d4ab2b
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Jul 27 23:44:02 2011 +0200
synctex: imports should go at the beginning of the file
plugins/synctex/synctex/synctex.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/synctex/synctex/synctex.py b/plugins/synctex/synctex/synctex.py
index 86dc7c1..29d3544 100644
--- a/plugins/synctex/synctex/synctex.py
+++ b/plugins/synctex/synctex/synctex.py
@@ -24,6 +24,7 @@ from evince_dbus import EvinceWindowProxy
import dbus.mainloop.glib
import logging
import gettext
+import os
from gpdefs import *
try:
@@ -132,8 +133,6 @@ class SynctexViewHelper:
del self._highlight_tag
def update_location(self):
- import os
-
gfile = self._doc.get_location()
if gfile is None:
return
@@ -344,7 +343,7 @@ class SynctexPlugin(GObject.Object, Gedit.WindowActivatable):
def unref_evince_proxy(self, gfile):
uri = gfile.get_uri()
if uri in SynctexPlugin._proxy_dict:
- SynctexPlugin._proxy_dict[uri][0]-=1
+ SynctexPlugin._proxy_dict[uri][0] -= 1
if SynctexPlugin._proxy_dict[uri][0] == 0:
del SynctexPlugin._proxy_dict[uri]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]