Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree-wide: drop from __future__ imports #248

Merged
merged 1 commit into from
Sep 30, 2019
Merged
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 afew/Database.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

import os
import time
import logging
Expand Down
2 changes: 0 additions & 2 deletions afew/FilterRegistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

import pkg_resources


Expand Down
2 changes: 0 additions & 2 deletions afew/NotmuchSettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

import os

from .configparser import RawConfigParser
Expand Down
2 changes: 0 additions & 2 deletions afew/Settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

import os
import re
import collections
Expand Down
2 changes: 0 additions & 2 deletions afew/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals
2 changes: 0 additions & 2 deletions afew/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Lucas Hoffmann

from __future__ import print_function, absolute_import, unicode_literals

from afew.commands import main
main()
2 changes: 0 additions & 2 deletions afew/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

import glob
import sys
import time
Expand Down
2 changes: 0 additions & 2 deletions afew/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

import os
import re
import stat
Expand Down
3 changes: 1 addition & 2 deletions afew/filters/ArchiveSentMailsFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

from ..filters.SentMailsFilter import SentMailsFilter
from ..NotmuchSettings import get_notmuch_new_tags


class ArchiveSentMailsFilter(SentMailsFilter):
message = 'Archiving all mails sent by myself to others'

Expand Down
2 changes: 0 additions & 2 deletions afew/filters/BaseFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

import collections
import logging

Expand Down
2 changes: 0 additions & 2 deletions afew/filters/DKIMValidityFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Amadeusz Zolnowski <aidecoe@aidecoe.name>

from __future__ import print_function, absolute_import, unicode_literals

import dkim

from .BaseFilter import Filter
Expand Down
2 changes: 0 additions & 2 deletions afew/filters/DMARCReportInspectionFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Amadeusz Zolnowski <aidecoe@aidecoe.name>

from __future__ import print_function, absolute_import, unicode_literals

import re
import tempfile
import xml.etree.ElementTree as ET
Expand Down
2 changes: 0 additions & 2 deletions afew/filters/FolderNameFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) dtk <dtk@gmx.de>

from __future__ import print_function, absolute_import, unicode_literals

from .BaseFilter import Filter
from ..NotmuchSettings import notmuch_settings
import re
Expand Down
2 changes: 0 additions & 2 deletions afew/filters/HeaderMatchingFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# Copyright (c) 2013 Patrick Totzke <patricktotzke@gmail.com>
# Copyright (c) 2014 Lars Kellogg-Stedman <lars@redhat.com>

from __future__ import print_function, absolute_import, unicode_literals

from .BaseFilter import Filter

import re
Expand Down
1 change: 0 additions & 1 deletion afew/filters/InboxFilter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>
from __future__ import print_function, absolute_import, unicode_literals

from .BaseFilter import Filter
from ..NotmuchSettings import get_notmuch_new_tags, get_notmuch_new_query
Expand Down
2 changes: 0 additions & 2 deletions afew/filters/KillThreadsFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

from .BaseFilter import Filter


Expand Down
2 changes: 0 additions & 2 deletions afew/filters/ListMailsFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

from .HeaderMatchingFilter import HeaderMatchingFilter


Expand Down
2 changes: 0 additions & 2 deletions afew/filters/MeFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Amadeusz Zolnowski <aidecoe@aidecoe.name>

from __future__ import print_function, absolute_import, unicode_literals

import re

from ..utils import filter_compat
Expand Down
2 changes: 0 additions & 2 deletions afew/filters/PropagateTagsByRegexInThreadFilter.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) Jens Neuhalfen <jens@neuhalfen.name>

from __future__ import print_function, absolute_import, unicode_literals

import re
from itertools import chain

Expand Down
2 changes: 0 additions & 2 deletions afew/filters/PropagateTagsInThreadFilter.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) Jens Neuhalfen <jens@neuhalfen.name>

from __future__ import print_function, absolute_import, unicode_literals

from .BaseFilter import Filter


Expand Down
2 changes: 0 additions & 2 deletions afew/filters/SentMailsFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

import re

from ..utils import filter_compat
Expand Down
2 changes: 0 additions & 2 deletions afew/filters/SpamFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

from .HeaderMatchingFilter import HeaderMatchingFilter


Expand Down
2 changes: 0 additions & 2 deletions afew/filters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

import os
import glob

Expand Down
2 changes: 0 additions & 2 deletions afew/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

import random
import sys

Expand Down
2 changes: 0 additions & 2 deletions afew/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: ISC
# Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de>

from __future__ import print_function, absolute_import, unicode_literals

import codecs
import re
import sys
Expand Down