Skip to content

Commit

Permalink
Removed some unused imports
Browse files Browse the repository at this point in the history
I found these with:

    flake8 datasette | grep unus
  • Loading branch information
simonw committed Jul 16, 2021
1 parent 721a8d3 commit dd5ee8e
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion datasette/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
parse_metadata,
resolve_env_secrets,
to_css_class,
HASH_LENGTH,
)
from .utils.asgi import (
AsgiLifespan,
Expand Down
1 change: 0 additions & 1 deletion datasette/default_magic_parameters.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from datasette import hookimpl
from datasette.utils import escape_fts
import datetime
import os
import time
Expand Down
2 changes: 0 additions & 2 deletions datasette/facets.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import json
import urllib
import re
from datasette import hookimpl
from datasette.database import QueryInterrupted
from datasette.utils import (
escape_sqlite,
path_with_added_args,
path_with_removed_args,
detect_json1,
InvalidSql,
sqlite3,
)

Expand Down
4 changes: 1 addition & 3 deletions datasette/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import base64
import hashlib
import inspect
import itertools
import json
import markupsafe
import mergedeep
Expand All @@ -17,10 +16,9 @@
import types
import shutil
import urllib
import numbers
import yaml
from .shutil_backport import copytree
from .sqlite import sqlite3, sqlite_version, supports_table_xinfo
from .sqlite import sqlite3, supports_table_xinfo


# From https://www.sqlite.org/lang_keywords.html
Expand Down
2 changes: 0 additions & 2 deletions datasette/utils/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
from mimetypes import guess_type
from urllib.parse import parse_qs, urlunparse, parse_qsl
from pathlib import Path
from html import escape
from http.cookies import SimpleCookie, Morsel
import re
import aiofiles
import aiofiles.os

Expand Down
1 change: 0 additions & 1 deletion datasette/views/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import pint

from datasette import __version__
from datasette.plugins import pm
from datasette.database import QueryInterrupted
from datasette.utils import (
await_me_maybe,
Expand Down
2 changes: 1 addition & 1 deletion datasette/views/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json

from datasette.utils import check_visibility, CustomJSONEncoder
from datasette.utils.asgi import Response, Forbidden
from datasette.utils.asgi import Response
from datasette.version import __version__

from .base import BaseView
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from re import VERBOSE
from setuptools import setup, find_packages
import os
import sys


def get_long_description():
Expand Down

0 comments on commit dd5ee8e

Please sign in to comment.