tMerge pull request #1432 from romanz/remove-mmap - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c6b5a703621c1e4fb632304f1cfb311fb0f46371 DIR parent cd734002f2e15fad950c5d4f6ef4fbb6261c0ee0 HTML Author: ThomasV <electrumdev@gmail.com> Date: Mon, 31 Aug 2015 22:39:08 +0200 Merge pull request #1432 from romanz/remove-mmap ttransaction: remove unused mmap-related code Diffstat: M lib/transaction.py | 11 ----------- 1 file changed, 0 insertions(+), 11 deletions(-) --- DIR diff --git a/lib/transaction.py b/lib/transaction.py t@@ -32,7 +32,6 @@ import struct # import struct import StringIO -import mmap import random NO_SIGNATURE = 'ff' t@@ -55,16 +54,6 @@ class BCDataStream(object): else: self.input += bytes - def map_file(self, file, start): # Initialize with bytes from file - self.input = mmap.mmap(file.fileno(), 0, access=mmap.ACCESS_READ) - self.read_cursor = start - - def seek_file(self, position): - self.read_cursor = position - - def close_file(self): - self.input.close() - def read_string(self): # Strings are encoded depending on length: # 0 to 252 : 1-byte-length followed by bytes (if any)