summaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py3/IPython/core/prompts.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/ipython/py3/IPython/core/prompts.py')
-rw-r--r--contrib/python/ipython/py3/IPython/core/prompts.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/python/ipython/py3/IPython/core/prompts.py b/contrib/python/ipython/py3/IPython/core/prompts.py
index 7fd218d37ae..105ff17f755 100644
--- a/contrib/python/ipython/py3/IPython/core/prompts.py
+++ b/contrib/python/ipython/py3/IPython/core/prompts.py
@@ -2,9 +2,11 @@
"""Being removed
"""
+
class LazyEvaluate(object):
"""This is used for formatting strings with values that need to be updated
at that time, such as the current time or working directory."""
+
def __init__(self, func, *args, **kwargs):
self.func = func
self.args = args
@@ -16,6 +18,6 @@ class LazyEvaluate(object):
def __str__(self):
return str(self())
-
+
def __format__(self, format_spec):
return format(self(), format_spec)