Skip to content

Commit

Permalink
fix creating a temp_folder in py2 when computeMountPaths in ZServer s…
Browse files Browse the repository at this point in the history
…tartup returns unicode
  • Loading branch information
pbauer committed Oct 1, 2018
1 parent d9d3eb3 commit d4d2037
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Products/ZODBMountPoint/MountedObject.py
Expand Up @@ -15,6 +15,7 @@
"""

import os
import six
import sys
import traceback
from six import StringIO
Expand Down Expand Up @@ -197,6 +198,8 @@ def _traverseToMountedRoot(self, root, mount_parent):

if real_path is None:
real_path = self._path
if six.PY2 and isinstance(real_path, six.text_type):
real_path = real_path.encode('utf8')
if real_path and real_path != '/':
try:
obj = obj.unrestrictedTraverse(real_path)
Expand Down

0 comments on commit d4d2037

Please sign in to comment.