Commits

Anonymous committed a045351

Handle bytes objects (b"").

  • Participants
  • Parent commits 927c212

Comments (0)

Files changed (1)

File flake8/pyflakes.py

         pass
 
     # "stmt" type nodes
-    RETURN = DELETE = PRINT = WHILE = IF = WITH = RAISE = TRYEXCEPT = \
-        TRYFINALLY = ASSERT = EXEC = EXPR = handleChildren
+    RETURN = DELETE = WHILE = IF = WITH = RAISE = TRYEXCEPT = \
+        TRYFINALLY = ASSERT = EXPR = handleChildren
 
     CONTINUE = BREAK = PASS = ignore
 
     # "expr" type nodes
     BOOLOP = BINOP = UNARYOP = IFEXP = DICT = SET = YIELD = COMPARE = \
-    CALL = REPR = ATTRIBUTE = SUBSCRIPT = LIST = TUPLE = handleChildren
+    CALL = REPR = PRINT = EXEC = ATTRIBUTE = SUBSCRIPT = LIST = TUPLE = handleChildren
 
     NUM = STR = ELLIPSIS = ignore
 
     # additional node types
     COMPREHENSION = EXCEPTHANDLER = KEYWORD = handleChildren
 
+    # bytes objects: b""
+    BYTES = handleChildren
+
+
     def addBinding(self, lineno, value, reportRedef=True):
         '''Called when a binding is altered.