mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
reformat
This commit is contained in:
parent
f325baae9c
commit
15b41d8e02
1 changed files with 1 additions and 5 deletions
|
@ -186,16 +186,12 @@ def complete_python_mode(prefix, line, start, end, ctx):
|
|||
|
||||
|
||||
def _turn_off_warning(func):
|
||||
"""
|
||||
Decorator to turn off warning temporarily.
|
||||
"""
|
||||
|
||||
"""Decorator to turn off warning temporarily."""
|
||||
def wrapper(*args, **kwargs):
|
||||
warnings.filterwarnings('ignore')
|
||||
r = func(*args, **kwargs)
|
||||
warnings.filterwarnings("once", category=DeprecationWarning)
|
||||
return r
|
||||
|
||||
return wrapper
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue