2008/4/23 Yuan HOng <[EMAIL PROTECTED]>:

>
>  Below is the patch that fixes this. I am not sure if this is the best,
>  since it allows the file digest to be unicode. Can someone have a
>  look?
>

The alternative patch is simpler and doesn't allow digest to be unicode:

Index: hashdir.py
===================================================================
--- hashdir.py  (revision 85015)
+++ hashdir.py  (working copy)
@@ -82,7 +82,7 @@

     def __init__(self, name, bufsize=-1):
         self.name = name
-        self.digest = os.path.split(self.name)[1]
+        self.digest = str(os.path.split(self.name)[1])
         self.bufsize=bufsize
         self._v_len = None
         self._v_file = None

-- 
Hong Yuan

大管家网上建材超市
装修装潢建材一站式购物
http://www.homemaster.cn
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to