Skip to content

Commit

Permalink
Remove six dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Kaiser committed Jan 29, 2020
1 parent 3c65dfe commit b03c029
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion kotti/message.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import hashlib
import time
from typing import Dict
from typing import List
from typing import Optional
from urllib.parse import urlencode

import hashlib
from html2text import HTML2Text
from pyramid.renderers import render
from pyramid_mailer.mailer import Mailer
Expand Down
4 changes: 2 additions & 2 deletions kotti/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def kotti_configure(settings):
'stamp_heads' will then include the add-on.
"""
import os
from typing import Callable
from typing import List

import pkg_resources
from alembic.config import Config
Expand All @@ -52,8 +54,6 @@ def kotti_configure(settings):
from kotti import get_settings
from kotti.util import command

from typing import Callable, List

KOTTI_SCRIPT_DIR = pkg_resources.resource_filename("kotti", "alembic")
DEFAULT_LOCATION = "kotti:alembic"

Expand Down
1 change: 0 additions & 1 deletion kotti/populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from pyramid.i18n import LocalizerRequestMixin
from pyramid.threadlocal import get_current_registry
from six import iteritems

from kotti import get_settings
from kotti.resources import DBSession
Expand Down
14 changes: 7 additions & 7 deletions kotti/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@
.. inheritance-diagram:: kotti.resources
"""
import abc
import datetime
import os
import warnings
from cgi import FieldStorage
from collections.abc import MutableMapping
from copy import copy
from fnmatch import fnmatch
from io import BufferedReader
from io import BytesIO
from typing import Any
from typing import Iterable
from typing import List
from typing import Optional
from typing import Union

import abc
import os
import warnings
from copy import copy
from depot.fields.sqlalchemy import UploadedFileField
from depot.fields.sqlalchemy import _SQLAMutationTracker
from depot.fields.upload import UploadedFile
from fnmatch import fnmatch
from io import BufferedReader
from io import BytesIO
from pyramid.decorator import reify
from pyramid.traversal import resource_path
from sqlalchemy import Boolean
Expand Down
1 change: 0 additions & 1 deletion kotti/sanitizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from bleach_whitelist.bleach_whitelist import print_tags
from pyramid.config import Configurator
from pyramid.util import DottedNameResolver
from six import string_types

from kotti import get_settings
from kotti.events import ObjectInsert
Expand Down
1 change: 0 additions & 1 deletion kotti/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from pyramid.location import lineage
from pyramid.security import PermitsResult
from pyramid.security import view_execution_permitted
from six import string_types
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import DateTime
Expand Down
4 changes: 2 additions & 2 deletions kotti/views/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
from deform.widget import CheckedPasswordWidget
from deform.widget import SequenceWidget
from pyramid.exceptions import Forbidden
from pyramid.httpexceptions import HTTPFound, HTTPBadRequest
from pyramid.httpexceptions import HTTPBadRequest
from pyramid.httpexceptions import HTTPFound
from pyramid.view import view_config
from pyramid_deform import FormView
from six import string_types

from kotti.events import UserDeleted
from kotti.events import notify
Expand Down
3 changes: 2 additions & 1 deletion kotti/views/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
from kotti import get_settings
from kotti.events import objectevent_listeners
from kotti.interfaces import INavigationRoot
from kotti.resources import Content, Node
from kotti.resources import Content
from kotti.resources import Document
from kotti.resources import Node
from kotti.resources import Tag
from kotti.resources import TagsToContents
from kotti.resources import get_root
Expand Down

0 comments on commit b03c029

Please sign in to comment.