diff options
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/glupy/examples/negative.py | 2 | ||||
-rw-r--r-- | xlators/features/glupy/src/glupy/__init__.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xlators/features/glupy/examples/negative.py b/xlators/features/glupy/examples/negative.py index e44ff4deed2..543f3109502 100644 --- a/xlators/features/glupy/examples/negative.py +++ b/xlators/features/glupy/examples/negative.py @@ -62,7 +62,7 @@ class xlator (Translator): if cache.has_key(pargfid): cache[pargfid].add(name) else: - cache[pargfid] = set([name]) + cache[pargfid] = {name} del self.requests[key] dl.unwind_lookup(frame,cookie,this,op_ret,op_errno, inode,buf,xdata,postparent) diff --git a/xlators/features/glupy/src/glupy/__init__.py b/xlators/features/glupy/src/glupy/__init__.py index b9fc3700fa6..16ff3101de8 100644 --- a/xlators/features/glupy/src/glupy/__init__.py +++ b/xlators/features/glupy/src/glupy/__init__.py @@ -240,8 +240,8 @@ def _init_op (a_class, fop, cbk, wind, unwind): # Decorators, used by translators. We could pass the signatures as # parameters, but it's actually kind of nice to keep them around for # inspection. - a_class.fop_type = apply(CFUNCTYPE,a_class.fop_sig) - a_class.cbk_type = apply(CFUNCTYPE,a_class.cbk_sig) + a_class.fop_type = CFUNCTYPE(*a_class.fop_sig) + a_class.cbk_type = CFUNCTYPE(*a_class.cbk_sig) # Dispatch-function registration. fop.restype = None fop.argtypes = [ c_long, a_class.fop_type ] |