Mon, 25 Mar 2013 10:21:30 +0100
Fixed a few PEP-8 related issues.
--- a/E5Network/E5SslInfoWidget.py Mon Mar 25 10:04:02 2013 +0100 +++ b/E5Network/E5SslInfoWidget.py Mon Mar 25 10:21:30 2013 +0100 @@ -88,7 +88,7 @@ label = QLabel(self) label.setWordWrap(True) - label.setText('<a href="moresslinfos">' + + label.setText('<a href="moresslinfos">' + self.trUtf8("Certificate Information") + "</a>") label.linkActivated.connect(self.__showCertificateInfos) layout.addWidget(label, rows, 1)
--- a/Preferences/__init__.py Mon Mar 25 10:04:02 2013 +0100 +++ b/Preferences/__init__.py Mon Mar 25 10:21:30 2013 +0100 @@ -122,7 +122,7 @@ "TabViewManagerFilenameOnly": True, "ShowFilePreview": True, "ShowFilePreviewJS": True, - "ShowFilePreviewSSI": True, + "ShowFilePreviewSSI": True, # the order in ViewProfiles is Project-Viewer, File-Browser, # Debug-Viewer, Python-Shell, Log-Viewer, Task-Viewer, # Templates-Viewer, Multiproject-Viewer, Terminal, Chat, Symbols,
--- a/Project/Project.py Mon Mar 25 10:04:02 2013 +0100 +++ b/Project/Project.py Mon Mar 25 10:21:30 2013 +0100 @@ -4279,7 +4279,7 @@ newline = self.getEolString() pkglistFile = open(pkglist, "w", encoding="utf-8", newline=newline) pkglistFile.write("\n".join(lst)) - pkglistFile.write("\n") # ensure the file ends with an empty line + pkglistFile.write("\n") # ensure the file ends with an empty line pkglistFile.close() except IOError as why: E5MessageBox.critical(self.ui,
--- a/QScintilla/QsciScintillaCompat.py Mon Mar 25 10:04:02 2013 +0100 +++ b/QScintilla/QsciScintillaCompat.py Mon Mar 25 10:21:30 2013 +0100 @@ -114,9 +114,9 @@ for style in rangeLow + rangeHigh: self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f) self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps) - self.SendScintilla(QsciScintilla.SCI_STYLESETWEIGHT, style, weight); - self.SendScintilla(QsciScintilla.SCI_STYLESETITALIC, style, italic); - self.SendScintilla(QsciScintilla.SCI_STYLESETUNDERLINE, style, underline); + self.SendScintilla(QsciScintilla.SCI_STYLESETWEIGHT, style, weight) + self.SendScintilla(QsciScintilla.SCI_STYLESETITALIC, style, italic) + self.SendScintilla(QsciScintilla.SCI_STYLESETUNDERLINE, style, underline) def linesOnScreen(self): """
--- a/UI/Previewer.py Mon Mar 25 10:04:02 2013 +0100 +++ b/UI/Previewer.py Mon Mar 25 10:21:30 2013 +0100 @@ -273,7 +273,7 @@ """ frame = self.previewView.page().mainFrame() if frame.contentsSize() == QSize(0, 0): - return # no valid data, nothing to save + return # no valid data, nothing to save pos = frame.scrollPosition() self.__scrollBarPositions[self.__previewedPath] = pos @@ -317,7 +317,7 @@ class PreviewProcessingThread(QThread): """ - Class implementing a thread to process some text into HTML usable by the + Class implementing a thread to process some text into HTML usable by the previewer view. @signal htmlReady(str,str) emitted with the file name and processed HTML to signal @@ -500,6 +500,7 @@ this page for details</a>) """ DEL_RE = r'(~~)(.*?)~~' + def extendMarkdown(self, md, md_globals): # Create the del pattern del_tag = markdown.inlinepatterns.SimpleTagPattern(self.DEL_RE, 'del') @@ -510,7 +511,7 @@ try: return markdown.markdown(text, extensions + ['mathjax']) - except (ImportError, ValueError): + except (ImportError, ValueError): # markdown raises ValueError or ImportError, depends on version # It is not clear, how to distinguish missing mathjax from other errors. # So keep going without mathjax.
--- a/eric5.e4p Mon Mar 25 10:04:02 2013 +0100 +++ b/eric5.e4p Mon Mar 25 10:21:30 2013 +0100 @@ -1,8 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Project SYSTEM "Project-5.1.dtd"> <!-- eric5 project file for project eric5 --> -<!-- Saved: 2013-03-16, 16:06:43 --> -<!-- Copyright (C) 2013 Detlev Offenbach, detlev@die-offenbachs.de --> <Project version="5.1"> <Language>en_US</Language> <ProjectWordList>Dictionaries/words.dic</ProjectWordList>