[gedit-latex] More style fixing.
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] More style fixing.
- Date: Tue, 28 Jun 2011 22:56:48 +0000 (UTC)
commit 627984c1d6bb81005a98842464461156ebc36cf9
Author: Josà Aliste <jaliste src gnome org>
Date: Tue Jun 28 18:52:20 2011 -0400
More style fixing.
latex/bibtex/dialogs.py | 4 ++--
latex/bibtex/editor.py | 17 +++++++++--------
2 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/latex/bibtex/dialogs.py b/latex/bibtex/dialogs.py
index 90013cf..30a0e3d 100644
--- a/latex/bibtex/dialogs.py
+++ b/latex/bibtex/dialogs.py
@@ -99,8 +99,8 @@ class InsertBibTeXEntryDialog(GladeInterface):
self._buttonOk = self.find_widget("buttonOk")
- self.connect_signals({ "on_comboTypes_changed" : self._comboTypesChanged,
- "on_entryIdent_changed" : self._identChanged })
+ self.connect_signals({"on_comboTypes_changed": self._comboTypesChanged,
+ "on_entryIdent_changed": self._identChanged})
comboTypes.set_active(0)
diff --git a/latex/bibtex/editor.py b/latex/bibtex/editor.py
index 4240bac..fba2ab5 100644
--- a/latex/bibtex/editor.py
+++ b/latex/bibtex/editor.py
@@ -58,7 +58,7 @@ class BibTeXEditor(Editor, IIssueHandler, JobChangeListener):
@property
def completion_handlers(self):
self.__bibtex_completion_handler = BibTeXCompletionHandler()
- return [ self.__bibtex_completion_handler ]
+ return [self.__bibtex_completion_handler]
def __init__(self, tab_decorator, file):
Editor.__init__(self, tab_decorator, file)
@@ -83,7 +83,6 @@ class BibTeXEditor(Editor, IIssueHandler, JobChangeListener):
self._parse_job = ParseJob()
self._parse_job.set_change_listener(self)
-
# initially parse
self.__parse()
@@ -95,7 +94,6 @@ class BibTeXEditor(Editor, IIssueHandler, JobChangeListener):
"""
self.__parse()
-
# def _on_state_changed(self, state):
# #
# # job.JobChangeListener._on_state_changed
@@ -134,7 +132,6 @@ class BibTeXEditor(Editor, IIssueHandler, JobChangeListener):
# self._parse_job.set_argument([self._file, self.content])
# self._parse_job.schedule()
-
@verbose
def __parse(self):
"""
@@ -152,22 +149,26 @@ class BibTeXEditor(Editor, IIssueHandler, JobChangeListener):
# self.parse(self._file)
- if BENCHMARK: t = time.clock()
+ if BENCHMARK:
+ t = time.clock()
# parse document
self._document = self._parser.parse(content, self._file, self)
- if BENCHMARK: self._log.info("BibTeXParser.parse: %f" % (time.clock() - t))
+ if BENCHMARK:
+ self._log.info("BibTeXParser.parse: %f" % (time.clock() - t))
self._log.debug("Parsed %s bytes of content" % len(content))
# validate
- if BENCHMARK: t = time.clock()
+ if BENCHMARK:
+ t = time.clock()
self._validator.validate(self._document, self._file, self)
# 0.11
- if BENCHMARK: self._log.info("BibTeXValidator.validate: %f" % (time.clock() - t))
+ if BENCHMARK:
+ self._log.info("BibTeXValidator.validate: %f" % (time.clock() - t))
self._outline_view.set_outline(self._document)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]