Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Drop coding declarations
Browse files Browse the repository at this point in the history
Unnecessary since we have dropped Python 2 support.
  • Loading branch information
vfaronov committed Jun 27, 2019
1 parent d90b7bd commit d495fe3
Show file tree
Hide file tree
Showing 66 changed files with 0 additions and 132 deletions.
2 changes: 0 additions & 2 deletions httpolice/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice import helpers
from httpolice.__metadata__ import version as __version__
from httpolice.blackboard import Complaint
Expand Down
2 changes: 0 additions & 2 deletions httpolice/__metadata__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# -*- coding: utf-8; -*-

version = '0.9.0.dev1'
homepage = 'https://github.com/vfaronov/httpolice'
2 changes: 0 additions & 2 deletions httpolice/blackboard.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from collections import namedtuple
import functools

Expand Down
2 changes: 0 additions & 2 deletions httpolice/citation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

class Citation:

"""A reference to a relevant document."""
Expand Down
2 changes: 0 additions & 2 deletions httpolice/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

"""The command-line interface to HTTPolice."""

import argparse
Expand Down
2 changes: 0 additions & 2 deletions httpolice/codings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

"""Decoding content and transfer codings."""

import zlib
Expand Down
2 changes: 0 additions & 2 deletions httpolice/exchange.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice import request, response
from httpolice.blackboard import Blackboard
from httpolice.known import st
Expand Down
2 changes: 0 additions & 2 deletions httpolice/framing1.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

"""Parse HTTP/1.x message framing according to RFC 7230."""

import re
Expand Down
2 changes: 0 additions & 2 deletions httpolice/header.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

"""Wrappers over raw HTTP headers.
HTTPolice works with headers on two levels.
Expand Down
2 changes: 0 additions & 2 deletions httpolice/helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

"""Functions that may be useful for integrating with HTTPolice."""

from httpolice.util.text import force_bytes, force_unicode
Expand Down
2 changes: 0 additions & 2 deletions httpolice/inputs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

"""Input formats for HTTPolice (mainly for the command-line tool).
Every input format is implemented as a function with the following interface:
Expand Down
2 changes: 0 additions & 2 deletions httpolice/inputs/common.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

class InputError(Exception):

pass
2 changes: 0 additions & 2 deletions httpolice/inputs/har.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

import base64
import io
import json
Expand Down
2 changes: 0 additions & 2 deletions httpolice/inputs/streams.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from collections import OrderedDict, namedtuple
from datetime import datetime, timedelta
import io
Expand Down
2 changes: 0 additions & 2 deletions httpolice/known/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

"""Load, query, and update tabular data for various protocol elements.
In this module, the term "key" means the actual name or number in question,
Expand Down
2 changes: 0 additions & 2 deletions httpolice/message.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

import codecs
from datetime import datetime, timedelta
from email import message_from_bytes as parse_email_message
Expand Down
2 changes: 0 additions & 2 deletions httpolice/notice.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

"""Access to the HTTPolice notices base.
Notices are written and stored in XML (``notices.xml``).
Expand Down
2 changes: 0 additions & 2 deletions httpolice/parse.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

"""A library of parser combinators based on the Earley algorithm.
This is used mainly for parsing header values (see :mod:`httpolice.header`).
Expand Down
2 changes: 0 additions & 2 deletions httpolice/reports/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.reports.html import html_report
from httpolice.reports.text import text_report

Expand Down
2 changes: 0 additions & 2 deletions httpolice/reports/common.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from functools import singledispatch

from httpolice import known, notice
Expand Down
2 changes: 0 additions & 2 deletions httpolice/reports/html.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from functools import singledispatch
import pkgutil

Expand Down
2 changes: 0 additions & 2 deletions httpolice/reports/text.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

import codecs
from functools import singledispatch

Expand Down
2 changes: 0 additions & 2 deletions httpolice/request.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

import base64
import fnmatch
import itertools
Expand Down
2 changes: 0 additions & 2 deletions httpolice/response.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from datetime import datetime, timedelta
from urllib.parse import urljoin, urlparse

Expand Down
2 changes: 0 additions & 2 deletions httpolice/stream.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.parse import ParseError


Expand Down
2 changes: 0 additions & 2 deletions httpolice/structure.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

"""Classes for representing various elements of the protocol."""

from collections import namedtuple
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/common.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.known import media
from httpolice.parse import auto, can_complain, fill_names, octet, octet_range
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/internal.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.parse import (fill_names, literal, maybe, pivot, skip, string1,
subst)
from httpolice.syntax.common import DIGIT
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc2616.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import auto, fill_names, octet_range
from httpolice.syntax.rfc7230 import quoted_string, token
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc3986.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import (auto, empty, fill_names, literal, maybe_str,
octet_range, pivot, string, string1, string_times,
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc4647.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import auto, fill_names, pivot, string, string_times
from httpolice.structure import CaseInsensitive
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc5646.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import (auto, fill_names, literal, maybe_str, octet_range,
pivot, string, string1, string_times)
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc5789.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import fill_names, pivot
from httpolice.syntax.rfc7230 import comma_list1
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc6266.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import auto, fill_names, literal, many, pivot, skip
from httpolice.structure import CaseInsensitive, MultiDict, Parametrized
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc6749.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import (auto, fill_names, many, octet, octet_range, pivot,
skip, string1)
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc6797.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import auto, fill_names, many, maybe, pivot, skip, string1
from httpolice.structure import HSTSDirective, Parametrized
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc6838.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import auto, fill_names, string_times
from httpolice.syntax.common import ALPHA, DIGIT
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc7230.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import (auto, can_complain, fill_names, group, literal,
many, maybe, maybe_str, named, octet, octet_range,
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc7231.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from datetime import date, datetime, time

from httpolice.citation import RFC
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc7232.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import (auto, can_complain, fill_names, maybe, octet,
octet_range, pivot, string, subst)
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc7233.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import (auto, can_complain, fill_names, literal, maybe,
pivot, skip, string, string1, subst)
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc7234.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import (fill_names, literal, mark, maybe, maybe_str,
named, pivot, skip, string1, string_times)
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc7235.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import (auto, can_complain, fill_names, mark, maybe,
pivot, skip, string, string1)
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc7239.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import (fill_names, many, maybe, pivot, skip, string1,
string_times)
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc7240.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import (auto, fill_names, literal, many, maybe, named,
pivot, skip)
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc7540.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import fill_names, pivot
from httpolice.syntax.rfc7235 import token68
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc7838.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from urllib.parse import quote as pct_encode, unquote_to_bytes as pct_decode

from httpolice.citation import RFC
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc8187.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from urllib.parse import unquote_to_bytes as pct_decode

from httpolice.citation import RFC
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/rfc8288.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import RFC
from httpolice.parse import (auto, can_complain, fill_names, literal, many,
mark, maybe, parse, pivot, skip, string, string1)
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/w3c_ldp.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import Citation
from httpolice.parse import fill_names, pivot
from httpolice.syntax.rfc7230 import comma_list
Expand Down
2 changes: 0 additions & 2 deletions httpolice/syntax/whatwg_fetch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice.citation import Citation
from httpolice.parse import (auto, case_sens, fill_names, literal, maybe_str,
pivot)
Expand Down
2 changes: 0 additions & 2 deletions httpolice/util/data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

import collections


Expand Down
2 changes: 0 additions & 2 deletions httpolice/util/ordered_enum.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

import enum


Expand Down
2 changes: 0 additions & 2 deletions httpolice/util/text.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

import io
import re
import string
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

import io
import os
import re
Expand Down
2 changes: 0 additions & 2 deletions test/test_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from httpolice import Exchange, Request, Response, check_exchange


Expand Down
2 changes: 0 additions & 2 deletions test/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

import os

import httpolice.cli
Expand Down
2 changes: 0 additions & 2 deletions test/test_from_files.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

"""File-based test suite.

Treat every file in ``combined_data/`` and ``har_data/`` as a test case.
Expand Down
2 changes: 0 additions & 2 deletions test/test_fuzz.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

"""Fuzz testing.

Generate random, very wrong inputs, and run them through HTTPolice.
Expand Down
2 changes: 0 additions & 2 deletions test/test_har_input.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

import os

from httpolice.inputs.har import har_input
Expand Down
2 changes: 0 additions & 2 deletions test/test_misc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

import io

import httpolice.helpers
Expand Down
2 changes: 0 additions & 2 deletions test/test_streams_input.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

import os

import pytest
Expand Down
2 changes: 0 additions & 2 deletions test/test_structure.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from datetime import datetime
import io
import os
Expand Down
2 changes: 0 additions & 2 deletions test/test_syntax.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

from datetime import datetime

import pytest
Expand Down
2 changes: 0 additions & 2 deletions tools/afl/harness.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8; -*-

import os
import sys

Expand Down
2 changes: 0 additions & 2 deletions tools/iana.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8; -*-

"""Tool to synchronize :mod:`httpolice.known` with IANA registries.

Simply run::
Expand Down

0 comments on commit d495fe3

Please sign in to comment.