summaryrefslogtreecommitdiff
path: root/smmap
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2014-11-13 11:28:27 +0100
committerSebastian Thiel <byronimo@gmail.com>2014-11-13 11:28:27 +0100
commit28fd45e0a7018f166820a5e00fce2ccb05ebdb61 (patch)
tree82ad52798947d2f9e293224c743a1452ca785784 /smmap
parentf53ddc686c0d226b2c69cc3732406dd3796932cf (diff)
downloadsmmap-28fd45e0a7018f166820a5e00fce2ccb05ebdb61.tar.gz
Fixed incorrect usage of memoryview. It's not getting faster though
[ skip ci ]
Diffstat (limited to 'smmap')
-rw-r--r--smmap/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/smmap/util.py b/smmap/util.py
index a4d7d8f..44e9412 100644
--- a/smmap/util.py
+++ b/smmap/util.py
@@ -23,7 +23,7 @@ try:
except NameError:
# Python 3 has no `buffer`; only `memoryview`
def buffer(obj, offset, size):
- # return memoryview(obj[offset:offset+size])
+ # return memoryview(obj)[offset:offset+size]
# doing it directly is much faster !
return obj[offset:offset+size]