Skip to content

Commit 6031827

Browse files
committed
Rename decorator to indicate it is a private implementation detail
1 parent b67f420 commit 6031827

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/apipkg/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def importobj(modpath, attrname):
9191
return retval
9292

9393

94-
def synchronized(wrapped_function):
94+
def _synchronized(wrapped_function):
9595
"""Decorator to synchronise __getattr__ calls."""
9696
if threading is None:
9797
return wrapped_function
@@ -162,7 +162,7 @@ def __repr__(self):
162162
return "<ApiModule {!r} {}>".format(self.__name__, " ".join(repr_list))
163163
return "<ApiModule {!r}>".format(self.__name__)
164164

165-
@synchronized
165+
@_synchronized
166166
def __makeattr(self, name, isgetattr=False):
167167
"""lazily compute value for name or raise AttributeError if unknown."""
168168
target = None

0 commit comments

Comments
 (0)