Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Remove unused imports #504

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions extensions/googletransit/pybcp47/bcp47languageparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import codecs
import os
from pkg_resources import resource_string
import re
import string
Expand Down
2 changes: 0 additions & 2 deletions feedvalidator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@
from __future__ import print_function

import bisect
import codecs
import datetime
from transitfeed.util import defaultdict
import optparse
import os
import os.path
import re
Expand Down
3 changes: 0 additions & 3 deletions kmlparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@
from __future__ import print_function

import re
import string
import sys
import transitfeed
from transitfeed import util
import xml.dom.minidom as minidom
import zipfile


class Placemark(object):
Expand Down
1 change: 0 additions & 1 deletion kmlwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
except ImportError as e:
import elementtree.ElementTree as ET # older pythons
import extensions.googletransit as googletransit
import optparse
import os.path
import sys
import transitfeed
Expand Down
1 change: 0 additions & 1 deletion merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@


import datetime
import optparse
import os
import re
import sys
Expand Down
1 change: 0 additions & 1 deletion misc/sql_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import csv
import os
import os.path
import resource
import pstats

try:
Expand Down
4 changes: 2 additions & 2 deletions schedule_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
from __future__ import print_function


import BaseHTTPServer, sys, urlparse
import BaseHTTPServer
import urlparse
import bisect
from gtfsscheduleviewer.marey_graph import MareyGraph
import gtfsscheduleviewer
Expand All @@ -32,7 +33,6 @@
import signal
import json as simplejson
import socket
import time
import transitfeed
from transitfeed import util
import urllib
Expand Down
3 changes: 0 additions & 3 deletions shape_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

__author__ = '[email protected] (Chris Harrelson)'

import csv
import glob
import ogr
import os
import shutil
Expand All @@ -32,7 +30,6 @@
import transitfeed
from transitfeed import shapelib
from transitfeed import util
import zipfile


class ShapeImporterError(Exception):
Expand Down
1 change: 0 additions & 1 deletion transitfeed/farerule.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# limitations under the License.

from __future__ import absolute_import
from .problems import default_problem_reporter
from .gtfsobjectbase import GtfsObjectBase

class FareRule(GtfsObjectBase):
Expand Down
2 changes: 1 addition & 1 deletion transitfeed/problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import time

from . import util
from .errors import TYPE_ERROR, TYPE_WARNING, TYPE_NOTICE, ALL_TYPES, Error
from .errors import ALL_TYPES, TYPE_ERROR, TYPE_NOTICE, TYPE_WARNING, Error

MAX_DISTANCE_FROM_STOP_TO_SHAPE = 1000
MAX_DISTANCE_BETWEEN_STOP_AND_PARENT_STATION_WARNING = 100.0
Expand Down
1 change: 0 additions & 1 deletion transitfeed/serviceperiod.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

from __future__ import absolute_import
import datetime
import re
import time

from . import problems as problems_module
Expand Down
2 changes: 0 additions & 2 deletions transitfeed/shapelib.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@

__author__ = '[email protected] (Chris Harrelson)'

import copy
import decimal
import heapq
import math

Expand Down
2 changes: 0 additions & 2 deletions transitfeed/shapepoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
# limitations under the License.

from __future__ import absolute_import
import bisect
from .gtfsobjectbase import GtfsObjectBase
from . import problems as problems_module
from . import util
import sys

class ShapePoint(GtfsObjectBase):
"""This class represents a single shape point.
Expand Down
3 changes: 1 addition & 2 deletions transitfeed/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import re
import socket
import sys
import time
import urllib2

from . import errors
Expand Down Expand Up @@ -230,7 +229,7 @@ def _MaxVersion(versions):
if len(versions) == 0:
return None

version_tuple = lambda x: tuple(int(item) for item in x.split('.'))
version_tuple = lambda x: tuple(int(item) for item in x.split('.'))
return max(versions, key=version_tuple)

OUTPUT_ENCODING = 'utf-8'
Expand Down
5 changes: 0 additions & 5 deletions unusual_trip_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@

__author__ = 'Jiri Semecky <[email protected]>'

import codecs
import os
import os.path
import sys
import time
import transitfeed
from transitfeed import util

Expand Down
1 change: 0 additions & 1 deletion visualize_pathways.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import re
import os
import subprocess
import sys


class LocationType(Enum):
Expand Down