diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index 9eab3a8..10dd8ce 100644 --- a/IPython/core/tests/test_magic.py +++ b/IPython/core/tests/test_magic.py @@ -1060,11 +1060,11 @@ def test_save(): ip.run_line_magic("save", "%s 1-10" % file) content = Path(file).read_text() nt.assert_equal(content.count(cmds[0]), 1) - nt.assert_in('coding: utf-8', content) + nt.assert_in("coding: utf-8", content) ip.run_line_magic("save", "-a %s 1-10" % file) content = Path(file).read_text() nt.assert_equal(content.count(cmds[0]), 2) - nt.assert_in('coding: utf-8', content) + nt.assert_in("coding: utf-8", content) def test_store(): @@ -1240,7 +1240,7 @@ def test_run_module_from_import_hook(): return imp.load_source('my_tmp', fullpath) def get_code(self, fullname): - return compile(Path(fullpath).read_text(), 'foo', 'exec') + return compile(Path(fullpath).read_text(), "foo", "exec") def is_package(self, __): return False diff --git a/docs/autogen_config.py b/docs/autogen_config.py index 0330b6d..ec24392 100755 --- a/docs/autogen_config.py +++ b/docs/autogen_config.py @@ -118,7 +118,7 @@ def write_doc(name, title, app, preamble=None): if __name__ == '__main__': # Touch this file for the make target - Path(generated).write_text('') + Path(generated).write_text("") write_doc('terminal', 'Terminal IPython options', TerminalIPythonApp()) write_doc('kernel', 'IPython kernel options', IPKernelApp(), diff --git a/docs/autogen_magics.py b/docs/autogen_magics.py index ca4a69f..14adfa2 100644 --- a/docs/autogen_magics.py +++ b/docs/autogen_magics.py @@ -63,5 +63,5 @@ for name, func in sorted(magics['cell'].items(), key=sortkey): ""]) here = os.path.dirname(__file__) -dest = Path(os.path.join(here, 'source', 'interactive', 'magics-generated.txt')) +dest = Path(os.path.join(here, "source", "interactive", "magics-generated.txt")) dest.write_text("\n".join(output))