Skip to content

Commit 0ac9f68

Browse files
committed
n->name
1 parent a2ed118 commit 0ac9f68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

irods/meta.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,16 @@ def __init__(self, operation, avu, **kw):
131131

132132

133133
class iRODSMetaCollection:
134-
def __getattr__(self,n):
134+
def __getattr__(self, name):
135135
from irods.manager.metadata_manager import _MetadataManager_opts_initializer
136136
# Separating _MetadataManager_opts_initializer from the MetadataManager class
137137
# prevents # the possibility of arbitrary access by copy.copy() to parts of
138138
# our object's state before they have been initialized, as it is known to do
139139
# by calling hasattr on the "__setstate__" attribute. The result of such
140140
# unfettered access is infinite recursion. See:
141141
# https://nedbatchelder.com/blog/201010/surprising_getattr_recursion
142-
if n in _MetadataManager_opts_initializer:
143-
return self._manager._opts[n]
142+
if name in _MetadataManager_opts_initializer:
143+
return self._manager._opts[name]
144144
raise AttributeError
145145

146146
def __call__(self, **opts):

0 commit comments

Comments
 (0)