Skip to content

Commit

Permalink
please formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Oct 29, 2022
1 parent 467f4a4 commit 17ac9ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions IPython/core/display.py
Expand Up @@ -625,6 +625,7 @@ def _data_and_metadata(self):
def _repr_json_(self):
return self._data_and_metadata()


_css_t = """var link = document.createElement("link");
link.ref = "stylesheet";
link.type = "text/css";
Expand Down
7 changes: 4 additions & 3 deletions IPython/core/interactiveshell.py
Expand Up @@ -1258,9 +1258,10 @@ def prepare_user_module(self, user_module=None, user_ns=None):
@functools.wraps(io_open)
def modified_open(file, *args, **kwargs):
if file in {0, 1, 2}:
raise ValueError(f"IPython won't let you open fd={file} by default "
"as it is likely to crash IPython. If you know what you are doing, "
"you can use builtins' open."
raise ValueError(
f"IPython won't let you open fd={file} by default "
"as it is likely to crash IPython. If you know what you are doing, "
"you can use builtins' open."
)

return io_open(file, *args, **kwargs)
Expand Down

0 comments on commit 17ac9ea

Please sign in to comment.