File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1+ v4.5.0
2+ =======
3+
4+ * #319: Remove ``SelectableGroups `` deprecation exception
5+ for flake8.
6+
17v4.4.0
28=======
39
Original file line number Diff line number Diff line change @@ -367,14 +367,6 @@ def _parse_groups(text):
367367 )
368368
369369
370- def flake8_bypass (func ):
371- # defer inspect import as performance optimization.
372- import inspect
373-
374- is_flake8 = any ('flake8' in str (frame .filename ) for frame in inspect .stack ()[:5 ])
375- return func if not is_flake8 else lambda : None
376-
377-
378370class Deprecated :
379371 """
380372 Compatibility add-in for mapping to indicate that
@@ -410,7 +402,7 @@ def __getitem__(self, name):
410402 return super ().__getitem__ (name )
411403
412404 def get (self , name , default = None ):
413- flake8_bypass ( self ._warn ) ()
405+ self ._warn ()
414406 return super ().get (name , default )
415407
416408 def __iter__ (self ):
Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ doctest_optionflags=ALLOW_UNICODE ELLIPSIS
55# workaround for warning pytest-dev/pytest#6178
66junit_family =xunit2
77filterwarnings =
8+ # Suppress deprecation warning in flake8
9+ ignore:SelectableGroups dict interface is deprecated::flake8
You can’t perform that action at this time.
0 commit comments