mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Merge pull request #5805 from rahulporuri/cln/remove-unnecessary-future-imports
Remove unnecessary future imports
This commit is contained in:
commit
158cc007e8
@ -1,4 +1,3 @@
|
|||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from notebook import notebookapp as app
|
from notebook import notebookapp as app
|
||||||
|
@ -5,8 +5,6 @@ Utilities for getting information about Jupyter and the system it's running in.
|
|||||||
# Copyright (c) Jupyter Development Team.
|
# Copyright (c) Jupyter Development Team.
|
||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
import pprint
|
import pprint
|
||||||
|
@ -7,8 +7,6 @@ test suite.
|
|||||||
# Copyright (c) Jupyter Development Team.
|
# Copyright (c) Jupyter Development Team.
|
||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
from __future__ import absolute_import, print_function
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import json
|
import json
|
||||||
import multiprocessing.pool
|
import multiprocessing.pool
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
# Copyright (c) Jupyter Development Team.
|
# Copyright (c) Jupyter Development Team.
|
||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
# Copyright (c) Jupyter Development Team.
|
# Copyright (c) Jupyter Development Team.
|
||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
from __future__ import absolute_import, print_function
|
|
||||||
|
|
||||||
import notebook
|
import notebook
|
||||||
import asyncio
|
import asyncio
|
||||||
import binascii
|
import binascii
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
# Copyright (c) Jupyter Development Team.
|
# Copyright (c) Jupyter Development Team.
|
||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import importlib
|
import importlib
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
"""Tests for the notebook manager."""
|
"""Tests for the notebook manager."""
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
"""Base class for notebook tests."""
|
"""Base class for notebook tests."""
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from binascii import hexlify
|
from binascii import hexlify
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
import errno
|
import errno
|
||||||
|
@ -44,7 +44,6 @@ casper.notebook_test(function () {
|
|||||||
IPython.notebook.insert_cell_at_index("code", 0);
|
IPython.notebook.insert_cell_at_index("code", 0);
|
||||||
var cell = IPython.notebook.get_cell(0);
|
var cell = IPython.notebook.get_cell(0);
|
||||||
cell.set_text([
|
cell.set_text([
|
||||||
"from __future__ import print_function",
|
|
||||||
"import sys",
|
"import sys",
|
||||||
"from IPython.display import display, clear_output"
|
"from IPython.display import display, clear_output"
|
||||||
].join("\n")
|
].join("\n")
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
# Copyright (c) Jupyter Development Team.
|
# Copyright (c) Jupyter Development Team.
|
||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import concurrent.futures
|
import concurrent.futures
|
||||||
import ctypes
|
import ctypes
|
||||||
|
@ -10,8 +10,6 @@ This includes:
|
|||||||
# Copyright (c) IPython Development Team.
|
# Copyright (c) IPython Development Team.
|
||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import pipes
|
import pipes
|
||||||
|
Loading…
Reference in New Issue
Block a user