Merge pull request #5805 from rahulporuri/cln/remove-unnecessary-future-imports

Remove unnecessary future imports
This commit is contained in:
Kevin Bates 2020-10-13 15:29:54 -07:00 committed by GitHub
commit 158cc007e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 0 additions and 19 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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")

View File

@ -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

View File

@ -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