Commits

Anonymous committed 1d536b3

[svn] == -> is in filter documentation

  • Participants
  • Parent commits 7c8bf20
  • Branches trunk

Comments (0)

Files changed (1)

docs/src/filterdevelopment.txt

 
         def filter(self, lexer, stream):
             for ttype, value in stream:
-                if ttype == Name.Function or (self.class_too and
-                                              ttype == Name.Class):
+                if ttype is Name.Function or (self.class_too and
+                                              ttype is Name.Class):
                     ttype = Name
                 yield ttype, value
 
     def uncolor(lexer, stream, options):
         class_too = get_bool_opt(options, 'classtoo')
         for ttype, value in stream:
-            if ttype == Name.Function or (class_too and
-                                          ttype == Name.Class):
+            if ttype is Name.Function or (class_too and
+                                          ttype is Name.Class):
                 ttype = Name
             yield ttype, value