# HG changeset patch # User David Barts # Date 1577524923 28800 # Node ID be0fd5c8121dbde6926ddb2ad5aaf2083afdd1ad # Parent f8d0a5201dd739fc36c67038094c67d9becc64e8 Can't use memoryview to base Runes on; different methods inside. diff -r f8d0a5201dd7 -r be0fd5c8121d runes.py --- a/runes.py Sat Dec 28 00:46:38 2019 -0800 +++ b/runes.py Sat Dec 28 01:22:03 2019 -0800 @@ -25,9 +25,8 @@ codec = codecs.lookup(encoding) def __init__(self, based_on=None): - if isinstance(based_on, (array.array, memoryview)): - format = based_on.typecode if isinstance(based_on, array.array) else based_on.format - if format == 'H': + if isinstance(based_on, array.array): + if based_on.typecode == 'H': self.buffer = based_on else: self.buffer = array.array('H', based_on)