"webconfig.py: Don't allow NoneType as buffer, fallback to bytes.

Fixes TypeErrors when using bindings tab"
This commit is contained in:
adisbladis 2014-07-22 12:31:57 +02:00
parent 2de914d8c3
commit 27fa0ea9d7

View file

@ -287,7 +287,7 @@ class BindingParser:
def set_buffer(self, buffer):
""" Sets code to parse """
self.buffer = buffer
self.buffer = buffer or b''
self.index = 0
def get_char(self):