trunk/rasta/rasta_lib - Fixes for Pylint [#3]

Gökmen Göksel uludag-commits at pardus.org.tr
9 Haz 2010 Çar 14:16:44 EEST


Author: gokmen.goksel
Date: Wed Jun  9 14:16:44 2010
New Revision: 30175

Modified:
   trunk/rasta/rasta_lib/rst_lexer.py
Log:
 * Fixes for Pylint [#3] 

---
 rst_lexer.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Modified: trunk/rasta/rasta_lib/rst_lexer.py
=================================================================
--- trunk/rasta/rasta_lib/rst_lexer.py	(original)
+++ trunk/rasta/rasta_lib/rst_lexer.py	Wed Jun  9 14:16:44 2010
@@ -18,6 +18,7 @@
 
     def __init__(self, parent, font=None):
         QsciLexerCustom.__init__(self, parent)
+        self.file_type = 'Rst Files'
         self._styles = {
             0: 'Default',
             1: 'Comment',
@@ -35,7 +36,7 @@
 
     def language(self):
         """ The type of files that match with this Lexer """
-        return 'Rst Files'
+        return self.file_type
 
     def description(self, style):
         """ Details of file type """


Uludag-commits mesaj listesiyle ilgili daha fazla bilgi