Skip to content

Commit

Permalink
More Py3 fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed May 4, 2017
1 parent 0005c7d commit ec9ebda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Products/ZCatalog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

"""ZCatalog product"""

import ZCatalog
from Products.ZCatalog import ZCatalog


def initialize(context):
Expand Down
11 changes: 9 additions & 2 deletions src/Products/ZCatalog/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,20 @@
from collections import namedtuple
from logging import getLogger
from os import environ
from thread import allocate_lock


from Acquisition import aq_base
from Acquisition import aq_parent
from Products.PluginIndexes.interfaces import IUniqueValueIndex
from zope.dottedname.resolve import resolve

from Products.PluginIndexes.interfaces import IUniqueValueIndex

try:
from _thread import allocate_lock
except ImportError: # PY2
from thread import allocate_lock


MAX_DISTINCT_VALUES = 10
REFRESH_RATE = 100
VALUE_INDEX_KEY = 'VALUE_INDEXES'
Expand Down

0 comments on commit ec9ebda

Please sign in to comment.