Skip to content

Instantly share code, notes, and snippets.

View ThomasWaldmann's full-sized avatar

TW ThomasWaldmann

View GitHub Profile
@ThomasWaldmann
ThomasWaldmann / gist:a6611d97c746fb85bc6c
Created September 12, 2015 21:19
trying to fix cython error msg
diff --git a/borg/hashindex.pyx b/borg/hashindex.pyx
index 6652e05..0b4dc26 100644
--- a/borg/hashindex.pyx
+++ b/borg/hashindex.pyx
@@ -37,7 +37,8 @@ cdef class IndexBase:
def __cinit__(self, capacity=0, path=None, key_size=32):
self.key_size = key_size
if path:
- self.index = hashindex_read(os.fsencode(path))
+ path = os.fsencode(path)