Commits

Stefan Klug committed 571765a

remove unnecessary check

Comments (0)

Files changed (1)

 
     data = bytearray(data)
 
-    state = 'RLE' if data[1] == data[0] else 'RAW'
-
     result = bytearray()
     buf = bytearray()
     pos = 0
     repeat_count = 0
     MAX_LENGTH = 127
+    #we can safely start with RAW as empty RAW sequences are handled by finish_raw()
+    state = 'RAW'
 
     def finish_raw():
         if len(buf) == 0: