aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py3/IPython/utils
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-10-17 11:21:34 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-10-17 11:31:31 +0300
commit09691831380ca7c15cfed3445465e27837c4130d (patch)
tree230283a3041728afefff825e1e5fb6da019eeb3e /contrib/python/ipython/py3/IPython/utils
parent68f2bcc600fc15fb8400346624c43d6be3ec81b2 (diff)
downloadydb-09691831380ca7c15cfed3445465e27837c4130d.tar.gz
Intermediate changes
commit_hash:2d9a1d3a3501b70a635f24b69a195c83059b71da
Diffstat (limited to 'contrib/python/ipython/py3/IPython/utils')
-rw-r--r--contrib/python/ipython/py3/IPython/utils/_sysinfo.py2
-rw-r--r--contrib/python/ipython/py3/IPython/utils/terminal.py8
2 files changed, 8 insertions, 2 deletions
diff --git a/contrib/python/ipython/py3/IPython/utils/_sysinfo.py b/contrib/python/ipython/py3/IPython/utils/_sysinfo.py
index 58edebdad2..304813b0f5 100644
--- a/contrib/python/ipython/py3/IPython/utils/_sysinfo.py
+++ b/contrib/python/ipython/py3/IPython/utils/_sysinfo.py
@@ -1,2 +1,2 @@
# GENERATED BY setup.py
-commit = "82690a067"
+commit = "a9c7369d7"
diff --git a/contrib/python/ipython/py3/IPython/utils/terminal.py b/contrib/python/ipython/py3/IPython/utils/terminal.py
index b09cfe0d22..10d73fce58 100644
--- a/contrib/python/ipython/py3/IPython/utils/terminal.py
+++ b/contrib/python/ipython/py3/IPython/utils/terminal.py
@@ -80,7 +80,13 @@ def _set_term_title_xterm(title):
def _restore_term_title_xterm():
# Make sure the restore has at least one accompanying set.
global _xterm_term_title_saved
- assert _xterm_term_title_saved
+ if not _xterm_term_title_saved:
+ warnings.warn(
+ "Expecting xterm_term_title_saved to be True, but is not; will not restore terminal title.",
+ stacklevel=1,
+ )
+ return
+
sys.stdout.write('\033[23;0t')
_xterm_term_title_saved = False