Reduce spurious "continue" statements

This commit is contained in:
rocky
2017-05-07 13:15:26 -04:00
parent e10e184eda
commit f8a40c1949
3 changed files with 22 additions and 3 deletions

View File

@@ -226,6 +226,9 @@ class Scanner(object):
yield start
start += self.op_size(self.code[start])
def next_offset(self, op, offset):
return offset + self.op_size(op)
def op_size(self, op):
"""
Return size of operator with its arguments