From da946f1f56cebb81eadcf1852290af33afd24d20 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Thu, 17 Oct 2019 15:02:24 -0700 Subject: [PATCH] removing builtins imports --- daemon/core/api/grpc/server.py | 1 - daemon/core/api/tlv/corehandlers.py | 1 - daemon/core/emane/commeffect.py | 1 - daemon/core/location/mobility.py | 1 - daemon/core/nodes/interface.py | 1 - daemon/core/nodes/ipaddress.py | 1 - daemon/examples/grpc/switch.py | 1 - daemon/examples/python/emane80211.py | 1 - daemon/examples/python/switch.py | 1 - daemon/examples/python/switch_inject.py | 1 - daemon/examples/python/wlan.py | 1 - daemon/tests/test_grpc.py | 1 - 12 files changed, 12 deletions(-) diff --git a/daemon/core/api/grpc/server.py b/daemon/core/api/grpc/server.py index 3c70ed09..dcea5fb5 100644 --- a/daemon/core/api/grpc/server.py +++ b/daemon/core/api/grpc/server.py @@ -4,7 +4,6 @@ import os import re import tempfile import time -from builtins import int from concurrent import futures from queue import Empty, Queue diff --git a/daemon/core/api/tlv/corehandlers.py b/daemon/core/api/tlv/corehandlers.py index 9a5e487a..f3966ba1 100644 --- a/daemon/core/api/tlv/corehandlers.py +++ b/daemon/core/api/tlv/corehandlers.py @@ -10,7 +10,6 @@ import socketserver import sys import threading import time -from builtins import range from itertools import repeat from queue import Empty, Queue diff --git a/daemon/core/emane/commeffect.py b/daemon/core/emane/commeffect.py index 4ae20107..13831291 100644 --- a/daemon/core/emane/commeffect.py +++ b/daemon/core/emane/commeffect.py @@ -4,7 +4,6 @@ commeffect.py: EMANE CommEffect model for CORE import logging import os -from builtins import int from lxml import etree diff --git a/daemon/core/location/mobility.py b/daemon/core/location/mobility.py index eae46ce4..eb2f244f 100644 --- a/daemon/core/location/mobility.py +++ b/daemon/core/location/mobility.py @@ -8,7 +8,6 @@ import math import os import threading import time -from builtins import int from functools import total_ordering from core import utils diff --git a/daemon/core/nodes/interface.py b/daemon/core/nodes/interface.py index a6e04eb5..3e4f73ef 100644 --- a/daemon/core/nodes/interface.py +++ b/daemon/core/nodes/interface.py @@ -4,7 +4,6 @@ virtual ethernet classes that implement the interfaces available under Linux. import logging import time -from builtins import int, range from core import utils from core.errors import CoreCommandError diff --git a/daemon/core/nodes/ipaddress.py b/daemon/core/nodes/ipaddress.py index c7860dbc..be2ec36d 100644 --- a/daemon/core/nodes/ipaddress.py +++ b/daemon/core/nodes/ipaddress.py @@ -6,7 +6,6 @@ import logging import random import socket import struct -from builtins import bytes, int, range from socket import AF_INET, AF_INET6 diff --git a/daemon/examples/grpc/switch.py b/daemon/examples/grpc/switch.py index 89dc371d..48aa63bc 100644 --- a/daemon/examples/grpc/switch.py +++ b/daemon/examples/grpc/switch.py @@ -1,5 +1,4 @@ import logging -from builtins import range from core.api.grpc import client, core_pb2 diff --git a/daemon/examples/python/emane80211.py b/daemon/examples/python/emane80211.py index adf6959b..93222f9e 100644 --- a/daemon/examples/python/emane80211.py +++ b/daemon/examples/python/emane80211.py @@ -5,7 +5,6 @@ import datetime import logging import parser -from builtins import range from core.emane.ieee80211abg import EmaneIeee80211abgModel from core.emulator.coreemu import CoreEmu diff --git a/daemon/examples/python/switch.py b/daemon/examples/python/switch.py index e4d0fd02..6702802e 100644 --- a/daemon/examples/python/switch.py +++ b/daemon/examples/python/switch.py @@ -8,7 +8,6 @@ import datetime import logging import parser -from builtins import range from core.emulator.coreemu import CoreEmu from core.emulator.emudata import IpPrefixes diff --git a/daemon/examples/python/switch_inject.py b/daemon/examples/python/switch_inject.py index ff1ff84b..1b7b634c 100644 --- a/daemon/examples/python/switch_inject.py +++ b/daemon/examples/python/switch_inject.py @@ -5,7 +5,6 @@ # and repeat for minnodes <= n <= maxnodes with a step size of # nodestep import logging -from builtins import range from core.emulator.emudata import IpPrefixes from core.emulator.enumerations import EventTypes, NodeTypes diff --git a/daemon/examples/python/wlan.py b/daemon/examples/python/wlan.py index b16af7cd..b3b4544e 100644 --- a/daemon/examples/python/wlan.py +++ b/daemon/examples/python/wlan.py @@ -8,7 +8,6 @@ import datetime import logging import parser -from builtins import range from core.emulator.coreemu import CoreEmu from core.emulator.emudata import IpPrefixes, NodeOptions diff --git a/daemon/tests/test_grpc.py b/daemon/tests/test_grpc.py index f9604229..37d8e7ae 100644 --- a/daemon/tests/test_grpc.py +++ b/daemon/tests/test_grpc.py @@ -1,5 +1,4 @@ import time -from builtins import int from queue import Queue import grpc