Skip to content

Commit 281d835

Browse files
committed
remove commented-out code
1 parent 0be30a4 commit 281d835

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Lib/enum.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -208,23 +208,6 @@ def __get__(self, instance, ownerclass=None):
208208
raise AttributeError(
209209
'%r has no attribute %r' % (ownerclass, self.name)
210210
)
211-
# if self.member is None: # not sure this can happen, but just in case
212-
# raise AttributeError(
213-
# '%r has no attribute %r' % (ownerclass, self.name)
214-
# )
215-
# # issue warning deprecating this behavior
216-
# import warnings
217-
# warnings.warn(
218-
# "`member.member` access (e.g. `Color.RED.BLUE`) is "
219-
# "deprecated and will be removed in 3.14.",
220-
# DeprecationWarning,
221-
# stacklevel=2,
222-
# )
223-
# return self.member
224-
# # XXX: uncomment in 3.14 and remove warning above
225-
# # raise AttributeError(
226-
# # '%r member has no attribute %r' % (ownerclass, self.name)
227-
# # )
228211
else:
229212
return self.fget(instance)
230213

0 commit comments

Comments
 (0)