From b40ad461be5b2995bb4ea011d3da7c12e355a320 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Thu, 2 Jan 2020 14:10:09 +0100 Subject: [PATCH] Remove repeated copyright assignments in files Everything is replaced by a more explicit message in the COPYRIGHT file. Inspired by rust-lang/rust#43498 and rust-lang/rust#57108. --- COPYRIGHT | 11 +++++++++++ LICENSE | 2 +- docs/conf.py | 2 +- setup.py | 3 --- weasyprint/__init__.py | 3 --- weasyprint/__main__.py | 3 --- weasyprint/css/__init__.py | 3 --- weasyprint/css/computed_values.py | 3 --- weasyprint/css/counters.py | 3 --- weasyprint/css/media_queries.py | 3 --- weasyprint/css/properties.py | 3 --- weasyprint/css/targets.py | 3 --- weasyprint/css/utils.py | 3 --- weasyprint/css/validation/__init__.py | 3 --- weasyprint/css/validation/descriptors.py | 3 --- weasyprint/css/validation/expanders.py | 3 --- weasyprint/css/validation/properties.py | 3 --- weasyprint/document.py | 3 --- weasyprint/draw.py | 3 --- weasyprint/fonts.py | 3 --- weasyprint/formatting_structure/__init__.py | 12 ------------ weasyprint/formatting_structure/boxes.py | 3 --- weasyprint/formatting_structure/build.py | 3 --- weasyprint/html.py | 3 --- weasyprint/images.py | 3 --- weasyprint/layout/__init__.py | 3 --- weasyprint/layout/absolute.py | 3 --- weasyprint/layout/backgrounds.py | 3 --- weasyprint/layout/blocks.py | 3 --- weasyprint/layout/columns.py | 3 --- weasyprint/layout/flex.py | 3 --- weasyprint/layout/float.py | 3 --- weasyprint/layout/inlines.py | 3 --- weasyprint/layout/min_max.py | 3 --- weasyprint/layout/pages.py | 3 --- weasyprint/layout/percentages.py | 3 --- weasyprint/layout/preferred.py | 3 --- weasyprint/layout/replaced.py | 3 --- weasyprint/layout/tables.py | 3 --- weasyprint/logger.py | 3 --- weasyprint/pdf.py | 3 --- weasyprint/stacking.py | 3 --- weasyprint/tests/__init__.py | 3 --- weasyprint/tests/test_acid2.py | 3 --- weasyprint/tests/test_api.py | 3 --- weasyprint/tests/test_boxes.py | 3 --- weasyprint/tests/test_counters.py | 3 --- weasyprint/tests/test_css.py | 4 ---- weasyprint/tests/test_css_descriptors.py | 3 --- weasyprint/tests/test_css_validation.py | 3 --- weasyprint/tests/test_draw/__init__.py | 3 --- weasyprint/tests/test_draw/test_background.py | 3 --- weasyprint/tests/test_draw/test_before_after.py | 3 --- weasyprint/tests/test_draw/test_box.py | 3 --- weasyprint/tests/test_draw/test_column.py | 3 --- weasyprint/tests/test_draw/test_current_color.py | 3 --- weasyprint/tests/test_draw/test_gradient.py | 3 --- weasyprint/tests/test_draw/test_image.py | 3 --- weasyprint/tests/test_draw/test_list.py | 3 --- weasyprint/tests/test_draw/test_opacity.py | 3 --- weasyprint/tests/test_draw/test_overflow.py | 3 --- weasyprint/tests/test_draw/test_table.py | 3 --- weasyprint/tests/test_draw/test_text.py | 3 --- weasyprint/tests/test_draw/test_transform.py | 3 --- weasyprint/tests/test_draw/test_visibility.py | 3 --- weasyprint/tests/test_float.py | 3 --- weasyprint/tests/test_fonts.py | 3 --- weasyprint/tests/test_layout/__init__.py | 3 --- weasyprint/tests/test_layout/test_block.py | 3 --- weasyprint/tests/test_layout/test_column.py | 3 --- weasyprint/tests/test_layout/test_flex.py | 3 --- weasyprint/tests/test_layout/test_image.py | 3 --- weasyprint/tests/test_layout/test_inline.py | 3 --- weasyprint/tests/test_layout/test_inline_block.py | 3 --- weasyprint/tests/test_layout/test_list.py | 3 --- weasyprint/tests/test_layout/test_page.py | 3 --- weasyprint/tests/test_layout/test_position.py | 3 --- weasyprint/tests/test_layout/test_shrink_to_fit.py | 3 --- weasyprint/tests/test_layout/test_table.py | 3 --- weasyprint/tests/test_pdf.py | 3 --- weasyprint/tests/test_presentational_hints.py | 3 --- weasyprint/tests/test_stacking.py | 3 --- weasyprint/tests/test_target.py | 3 --- weasyprint/tests/test_text.py | 3 --- weasyprint/tests/test_tools.py | 3 --- weasyprint/tests/test_unicode.py | 3 --- weasyprint/tests/test_variables.py | 3 --- weasyprint/tests/testing_utils.py | 3 --- weasyprint/text.py | 3 --- weasyprint/tools/navigator.py | 3 --- weasyprint/tools/renderer.py | 3 --- weasyprint/urls.py | 3 --- 92 files changed, 13 insertions(+), 279 deletions(-) create mode 100644 COPYRIGHT delete mode 100644 weasyprint/formatting_structure/__init__.py diff --git a/COPYRIGHT b/COPYRIGHT new file mode 100644 index 0000000000..57b00aedac --- /dev/null +++ b/COPYRIGHT @@ -0,0 +1,11 @@ +WeasyPrint is free software, released under BSD 3-clause license. See LICENSE +to get a full version of the license. + +Copyrights are retained by their contributors, no copyright assignment is +required to contribute to WeasyPrint. + +Unless explicitly stated otherwise, any contribution intentionally submitted +for inclusion is licensed under BSD, without any additional terms or +conditions. + +For full authorship information, see AUTHORS and the version control history. \ No newline at end of file diff --git a/LICENSE b/LICENSE index 6824298ea1..d517d66a9f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2011-2019, Simon Sapin and contributors (see AUTHORS). +Copyright (c) 2011-2020, Simon Sapin and contributors (see AUTHORS). All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/docs/conf.py b/docs/conf.py index 9c2872fcba..8094b7afbf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,7 +18,7 @@ # General information about the project. project = 'WeasyPrint' -copyright = '2011-2019, Simon Sapin and contributors, see AUTHORS' +copyright = '2011-2020, Simon Sapin and contributors (see AUTHORS)' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the diff --git a/setup.py b/setup.py index 289f69a485..99a06816af 100755 --- a/setup.py +++ b/setup.py @@ -6,9 +6,6 @@ WeasyPrint converts web documents to PDF. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import sys diff --git a/weasyprint/__init__.py b/weasyprint/__init__.py index fca3ddcb41..f6798156a8 100644 --- a/weasyprint/__init__.py +++ b/weasyprint/__init__.py @@ -7,9 +7,6 @@ The public API is what is accessible from this "root" packages without importing sub-modules. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import contextlib diff --git a/weasyprint/__main__.py b/weasyprint/__main__.py index a17dc57efa..d851523c78 100644 --- a/weasyprint/__main__.py +++ b/weasyprint/__main__.py @@ -4,9 +4,6 @@ Command-line interface to WeasyPrint. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import argparse diff --git a/weasyprint/css/__init__.py b/weasyprint/css/__init__.py index 4e6b797dd3..914f345eb2 100644 --- a/weasyprint/css/__init__.py +++ b/weasyprint/css/__init__.py @@ -12,9 +12,6 @@ :func:`get_all_computed_styles` function does everything, but it is itsef based on other functions in this module. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from collections import namedtuple diff --git a/weasyprint/css/computed_values.py b/weasyprint/css/computed_values.py index ff47cb4cce..75560b5bf7 100644 --- a/weasyprint/css/computed_values.py +++ b/weasyprint/css/computed_values.py @@ -5,9 +5,6 @@ Convert *specified* property values (the result of the cascade and inhertance) into *computed* values (that are inherited). - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from collections import OrderedDict diff --git a/weasyprint/css/counters.py b/weasyprint/css/counters.py index b55bcaf925..18f9d8363f 100644 --- a/weasyprint/css/counters.py +++ b/weasyprint/css/counters.py @@ -7,9 +7,6 @@ These are defined in CSS Counter Styles Level 3: https://www.w3.org/TR/css-counter-styles-3/#counter-style-system - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from copy import deepcopy diff --git a/weasyprint/css/media_queries.py b/weasyprint/css/media_queries.py index 4a939fde35..3d038b2c72 100644 --- a/weasyprint/css/media_queries.py +++ b/weasyprint/css/media_queries.py @@ -6,9 +6,6 @@ https://www.w3.org/TR/mediaqueries-4/ - :copyright: Copyright 2011-2018 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import tinycss2 diff --git a/weasyprint/css/properties.py b/weasyprint/css/properties.py index bb9752475e..350312aca1 100644 --- a/weasyprint/css/properties.py +++ b/weasyprint/css/properties.py @@ -4,9 +4,6 @@ Various data about known properties. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import collections diff --git a/weasyprint/css/targets.py b/weasyprint/css/targets.py index a68d06e4f0..fa31ccfab9 100644 --- a/weasyprint/css/targets.py +++ b/weasyprint/css/targets.py @@ -8,9 +8,6 @@ counter_values and stuff needed to build pending targets later, when the layout of all targetted anchors has been done. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import copy diff --git a/weasyprint/css/utils.py b/weasyprint/css/utils.py index df4f2631e7..5366576251 100644 --- a/weasyprint/css/utils.py +++ b/weasyprint/css/utils.py @@ -5,9 +5,6 @@ Utils for CSS properties. See http://www.w3.org/TR/CSS21/propidx.html and various CSS3 modules. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import functools diff --git a/weasyprint/css/validation/__init__.py b/weasyprint/css/validation/__init__.py index e61b40a2d3..d0984cbdc7 100644 --- a/weasyprint/css/validation/__init__.py +++ b/weasyprint/css/validation/__init__.py @@ -4,9 +4,6 @@ Validate properties, expanders and descriptors. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ diff --git a/weasyprint/css/validation/descriptors.py b/weasyprint/css/validation/descriptors.py index 76bc08baae..3a91f281af 100644 --- a/weasyprint/css/validation/descriptors.py +++ b/weasyprint/css/validation/descriptors.py @@ -4,9 +4,6 @@ Validate descriptors used for some at-rules. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import tinycss2 diff --git a/weasyprint/css/validation/expanders.py b/weasyprint/css/validation/expanders.py index 44fd8702e2..0d3dc76580 100644 --- a/weasyprint/css/validation/expanders.py +++ b/weasyprint/css/validation/expanders.py @@ -4,9 +4,6 @@ Validate properties expanders. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import functools diff --git a/weasyprint/css/validation/properties.py b/weasyprint/css/validation/properties.py index 138c3c7fed..7ae0bf0da7 100644 --- a/weasyprint/css/validation/properties.py +++ b/weasyprint/css/validation/properties.py @@ -5,9 +5,6 @@ Validate properties. See http://www.w3.org/TR/CSS21/propidx.html and various CSS3 modules. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from tinycss2.color3 import parse_color diff --git a/weasyprint/document.py b/weasyprint/document.py index 109aa2b3cd..4849640047 100644 --- a/weasyprint/document.py +++ b/weasyprint/document.py @@ -2,9 +2,6 @@ weasyprint.document ------------------- - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import collections diff --git a/weasyprint/draw.py b/weasyprint/draw.py index 9ddf082771..e619b39f2a 100644 --- a/weasyprint/draw.py +++ b/weasyprint/draw.py @@ -4,9 +4,6 @@ Take an "after layout" box tree and draw it onto a cairo context. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import contextlib diff --git a/weasyprint/fonts.py b/weasyprint/fonts.py index d67d59cd2e..40000e31c3 100644 --- a/weasyprint/fonts.py +++ b/weasyprint/fonts.py @@ -4,9 +4,6 @@ Interface with external libraries managing fonts installed on the system. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import os diff --git a/weasyprint/formatting_structure/__init__.py b/weasyprint/formatting_structure/__init__.py deleted file mode 100644 index ebca7d4fdb..0000000000 --- a/weasyprint/formatting_structure/__init__.py +++ /dev/null @@ -1,12 +0,0 @@ -""" - weasyprint.formatting_structure - ------------------------------- - - The formatting structure is a tree of boxes. It is either "before layout", - close to the element tree is it built from, or "after layout", with - line breaks and page breaks. - - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - -""" diff --git a/weasyprint/formatting_structure/boxes.py b/weasyprint/formatting_structure/boxes.py index 348a83d847..28b6d59164 100644 --- a/weasyprint/formatting_structure/boxes.py +++ b/weasyprint/formatting_structure/boxes.py @@ -51,9 +51,6 @@ See respective docstrings for details. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import itertools diff --git a/weasyprint/formatting_structure/build.py b/weasyprint/formatting_structure/build.py index 406db929a5..10c143ee22 100644 --- a/weasyprint/formatting_structure/build.py +++ b/weasyprint/formatting_structure/build.py @@ -8,9 +8,6 @@ This includes creating anonymous boxes and processing whitespace as necessary. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import copy diff --git a/weasyprint/html.py b/weasyprint/html.py index b1683865b1..5959a98fc1 100644 --- a/weasyprint/html.py +++ b/weasyprint/html.py @@ -9,9 +9,6 @@ have intrinsic dimensions. But the only replaced elements currently supported in WeasyPrint are images with intrinsic dimensions. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import logging diff --git a/weasyprint/images.py b/weasyprint/images.py index 200d134713..d9c24dddeb 100644 --- a/weasyprint/images.py +++ b/weasyprint/images.py @@ -4,9 +4,6 @@ Fetch and decode images in various formats. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import math diff --git a/weasyprint/layout/__init__.py b/weasyprint/layout/__init__.py index 3f873aa25f..45457fd9f6 100644 --- a/weasyprint/layout/__init__.py +++ b/weasyprint/layout/__init__.py @@ -13,9 +13,6 @@ See http://www.w3.org/TR/CSS21/cascade.html#used-value - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from collections import defaultdict diff --git a/weasyprint/layout/absolute.py b/weasyprint/layout/absolute.py index cd86a8077a..d983e084aa 100644 --- a/weasyprint/layout/absolute.py +++ b/weasyprint/layout/absolute.py @@ -2,9 +2,6 @@ weasyprint.absolute ------------------- - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..formatting_structure import boxes diff --git a/weasyprint/layout/backgrounds.py b/weasyprint/layout/backgrounds.py index a02a7bbca1..e5f6426f53 100644 --- a/weasyprint/layout/backgrounds.py +++ b/weasyprint/layout/backgrounds.py @@ -2,9 +2,6 @@ weasyprint.backgrounds ---------------------- - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from collections import namedtuple diff --git a/weasyprint/layout/blocks.py b/weasyprint/layout/blocks.py index 71d7f7dca3..f137080dec 100644 --- a/weasyprint/layout/blocks.py +++ b/weasyprint/layout/blocks.py @@ -4,9 +4,6 @@ Page breaking and layout for block-level and block-container boxes. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..formatting_structure import boxes diff --git a/weasyprint/layout/columns.py b/weasyprint/layout/columns.py index 11834f5f18..618ffdf83c 100644 --- a/weasyprint/layout/columns.py +++ b/weasyprint/layout/columns.py @@ -4,9 +4,6 @@ Layout for columns. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from math import floor diff --git a/weasyprint/layout/flex.py b/weasyprint/layout/flex.py index ad5c275bf3..4e30a4812d 100644 --- a/weasyprint/layout/flex.py +++ b/weasyprint/layout/flex.py @@ -4,9 +4,6 @@ Layout for flex containers and flex-items. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import sys diff --git a/weasyprint/layout/float.py b/weasyprint/layout/float.py index c521f4cde2..028687dec3 100644 --- a/weasyprint/layout/float.py +++ b/weasyprint/layout/float.py @@ -4,9 +4,6 @@ Layout for floating boxes. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..formatting_structure import boxes diff --git a/weasyprint/layout/inlines.py b/weasyprint/layout/inlines.py index a9c9e52bfc..2e45ec174c 100644 --- a/weasyprint/layout/inlines.py +++ b/weasyprint/layout/inlines.py @@ -4,9 +4,6 @@ Line breaking and layout for inline-level boxes. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import unicodedata diff --git a/weasyprint/layout/min_max.py b/weasyprint/layout/min_max.py index 91364b7f4c..d1775ad3f0 100644 --- a/weasyprint/layout/min_max.py +++ b/weasyprint/layout/min_max.py @@ -2,9 +2,6 @@ weasyprint.layout.min_max ------------------------- - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import functools diff --git a/weasyprint/layout/pages.py b/weasyprint/layout/pages.py index 5af74c8fa3..de0e944cf3 100644 --- a/weasyprint/layout/pages.py +++ b/weasyprint/layout/pages.py @@ -4,9 +4,6 @@ Layout for pages and CSS3 margin boxes. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import copy diff --git a/weasyprint/layout/percentages.py b/weasyprint/layout/percentages.py index 507998bc18..02076903c3 100644 --- a/weasyprint/layout/percentages.py +++ b/weasyprint/layout/percentages.py @@ -4,9 +4,6 @@ Resolve percentages into fixed values. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..formatting_structure import boxes diff --git a/weasyprint/layout/preferred.py b/weasyprint/layout/preferred.py index 4e3d28ae48..4ff3b48d63 100644 --- a/weasyprint/layout/preferred.py +++ b/weasyprint/layout/preferred.py @@ -8,9 +8,6 @@ Terms used (max-content width, min-content width) are defined in David Baron's unofficial draft (http://dbaron.org/css/intrinsic/). - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import sys diff --git a/weasyprint/layout/replaced.py b/weasyprint/layout/replaced.py index d3fb62639a..5f22a82cb2 100644 --- a/weasyprint/layout/replaced.py +++ b/weasyprint/layout/replaced.py @@ -5,9 +5,6 @@ Layout for images and other replaced elements. http://dev.w3.org/csswg/css-images-3/#sizing - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from .percentages import percentage diff --git a/weasyprint/layout/tables.py b/weasyprint/layout/tables.py index bcf10570bb..da11860140 100644 --- a/weasyprint/layout/tables.py +++ b/weasyprint/layout/tables.py @@ -4,9 +4,6 @@ Layout for tables and internal table boxes. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..formatting_structure import boxes diff --git a/weasyprint/logger.py b/weasyprint/logger.py index 7e48cc4473..481788ac30 100644 --- a/weasyprint/logger.py +++ b/weasyprint/logger.py @@ -15,9 +15,6 @@ fonts and various non-fatal problems; - infos are used to advertise rendering steps. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import logging diff --git a/weasyprint/pdf.py b/weasyprint/pdf.py index 16e2f98b74..a6df47e6a1 100644 --- a/weasyprint/pdf.py +++ b/weasyprint/pdf.py @@ -22,9 +22,6 @@ rather than silently behave incorrectly. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import hashlib diff --git a/weasyprint/stacking.py b/weasyprint/stacking.py index 87e58f1fb5..94a87a5f66 100644 --- a/weasyprint/stacking.py +++ b/weasyprint/stacking.py @@ -2,9 +2,6 @@ weasyprint.stacking ------------------- - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import operator diff --git a/weasyprint/tests/__init__.py b/weasyprint/tests/__init__.py index ac6fa8113d..5b84e38f83 100644 --- a/weasyprint/tests/__init__.py +++ b/weasyprint/tests/__init__.py @@ -4,7 +4,4 @@ The Weasyprint test suite. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ diff --git a/weasyprint/tests/test_acid2.py b/weasyprint/tests/test_acid2.py index a523440a60..8b6e95ef8d 100644 --- a/weasyprint/tests/test_acid2.py +++ b/weasyprint/tests/test_acid2.py @@ -4,9 +4,6 @@ Check the famous Acid2 test. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from .. import HTML diff --git a/weasyprint/tests/test_api.py b/weasyprint/tests/test_api.py index d94b3dc4c2..520a2f7299 100644 --- a/weasyprint/tests/test_api.py +++ b/weasyprint/tests/test_api.py @@ -4,9 +4,6 @@ Test the public API. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import gzip diff --git a/weasyprint/tests/test_boxes.py b/weasyprint/tests/test_boxes.py index 0a0a421158..12c8431ce7 100644 --- a/weasyprint/tests/test_boxes.py +++ b/weasyprint/tests/test_boxes.py @@ -4,9 +4,6 @@ Test that the "before layout" box tree is correctly constructed. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import functools diff --git a/weasyprint/tests/test_counters.py b/weasyprint/tests/test_counters.py index 78388a70e3..ec63848166 100644 --- a/weasyprint/tests/test_counters.py +++ b/weasyprint/tests/test_counters.py @@ -4,9 +4,6 @@ Test CSS counters. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_css.py b/weasyprint/tests/test_css.py index 87302e0f12..6eecd2a8cd 100644 --- a/weasyprint/tests/test_css.py +++ b/weasyprint/tests/test_css.py @@ -3,10 +3,6 @@ ------------------------- Test the CSS parsing, cascade, inherited and computed values. - - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from math import isclose diff --git a/weasyprint/tests/test_css_descriptors.py b/weasyprint/tests/test_css_descriptors.py index e87dfca481..bcb8917603 100644 --- a/weasyprint/tests/test_css_descriptors.py +++ b/weasyprint/tests/test_css_descriptors.py @@ -4,9 +4,6 @@ Test CSS descriptors. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_css_validation.py b/weasyprint/tests/test_css_validation.py index 98dd3f5431..ea92f0b481 100644 --- a/weasyprint/tests/test_css_validation.py +++ b/weasyprint/tests/test_css_validation.py @@ -4,9 +4,6 @@ Test expanders for shorthand properties. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import math diff --git a/weasyprint/tests/test_draw/__init__.py b/weasyprint/tests/test_draw/__init__.py index c1a4c3a78b..a1a94ce05b 100644 --- a/weasyprint/tests/test_draw/__init__.py +++ b/weasyprint/tests/test_draw/__init__.py @@ -4,9 +4,6 @@ Test the final, drawn results and compare PNG images pixel per pixel. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import os diff --git a/weasyprint/tests/test_draw/test_background.py b/weasyprint/tests/test_draw/test_background.py index ca82044846..7ca75ad743 100644 --- a/weasyprint/tests/test_draw/test_background.py +++ b/weasyprint/tests/test_draw/test_background.py @@ -4,9 +4,6 @@ Test how backgrounds are drawn. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_draw/test_before_after.py b/weasyprint/tests/test_draw/test_before_after.py index 6e1313425e..6c817d1309 100644 --- a/weasyprint/tests/test_draw/test_before_after.py +++ b/weasyprint/tests/test_draw/test_before_after.py @@ -4,9 +4,6 @@ Test how before and after pseudo elements are drawn. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..testing_utils import assert_no_logs diff --git a/weasyprint/tests/test_draw/test_box.py b/weasyprint/tests/test_draw/test_box.py index b78e9c668f..ba646bebc1 100644 --- a/weasyprint/tests/test_draw/test_box.py +++ b/weasyprint/tests/test_draw/test_box.py @@ -4,9 +4,6 @@ Test how boxes, borders, outlines are drawn. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import itertools diff --git a/weasyprint/tests/test_draw/test_column.py b/weasyprint/tests/test_draw/test_column.py index 470d98d9ac..eb21c279e6 100644 --- a/weasyprint/tests/test_draw/test_column.py +++ b/weasyprint/tests/test_draw/test_column.py @@ -4,9 +4,6 @@ Test how columns are drawn. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..testing_utils import assert_no_logs, requires diff --git a/weasyprint/tests/test_draw/test_current_color.py b/weasyprint/tests/test_draw/test_current_color.py index 23b15db506..7328d0e7d0 100644 --- a/weasyprint/tests/test_draw/test_current_color.py +++ b/weasyprint/tests/test_draw/test_current_color.py @@ -4,9 +4,6 @@ Test the currentColor value. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..testing_utils import assert_no_logs diff --git a/weasyprint/tests/test_draw/test_gradient.py b/weasyprint/tests/test_draw/test_gradient.py index c286362e5e..6fa82e1125 100644 --- a/weasyprint/tests/test_draw/test_gradient.py +++ b/weasyprint/tests/test_draw/test_gradient.py @@ -4,9 +4,6 @@ Test how gradients are drawn. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..testing_utils import assert_no_logs, requires diff --git a/weasyprint/tests/test_draw/test_image.py b/weasyprint/tests/test_draw/test_image.py index f16a37d8fc..cde17ef72e 100644 --- a/weasyprint/tests/test_draw/test_image.py +++ b/weasyprint/tests/test_draw/test_image.py @@ -4,9 +4,6 @@ Test how images are drawn. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_draw/test_list.py b/weasyprint/tests/test_draw/test_list.py index b295f9599c..9627d09a74 100644 --- a/weasyprint/tests/test_draw/test_list.py +++ b/weasyprint/tests/test_draw/test_list.py @@ -4,9 +4,6 @@ Test how lists are drawn. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_draw/test_opacity.py b/weasyprint/tests/test_draw/test_opacity.py index c3eb720d66..7f6d1e58b3 100644 --- a/weasyprint/tests/test_draw/test_opacity.py +++ b/weasyprint/tests/test_draw/test_opacity.py @@ -4,9 +4,6 @@ Test opacity. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..testing_utils import assert_no_logs diff --git a/weasyprint/tests/test_draw/test_overflow.py b/weasyprint/tests/test_draw/test_overflow.py index d2937c1cc9..814ef64438 100644 --- a/weasyprint/tests/test_draw/test_overflow.py +++ b/weasyprint/tests/test_draw/test_overflow.py @@ -4,9 +4,6 @@ Test overflow and clipping. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_draw/test_table.py b/weasyprint/tests/test_draw/test_table.py index f982d539a7..8dde8a5464 100644 --- a/weasyprint/tests/test_draw/test_table.py +++ b/weasyprint/tests/test_draw/test_table.py @@ -4,9 +4,6 @@ Test how tables are drawn. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ...html import HTML_HANDLERS diff --git a/weasyprint/tests/test_draw/test_text.py b/weasyprint/tests/test_draw/test_text.py index 9b4f902660..ca057bd44b 100644 --- a/weasyprint/tests/test_draw/test_text.py +++ b/weasyprint/tests/test_draw/test_text.py @@ -4,9 +4,6 @@ Test how text is drawn. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from . import assert_pixels diff --git a/weasyprint/tests/test_draw/test_transform.py b/weasyprint/tests/test_draw/test_transform.py index 4e843ac398..933d0d8fe6 100644 --- a/weasyprint/tests/test_draw/test_transform.py +++ b/weasyprint/tests/test_draw/test_transform.py @@ -4,9 +4,6 @@ Test transformations. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..testing_utils import assert_no_logs diff --git a/weasyprint/tests/test_draw/test_visibility.py b/weasyprint/tests/test_draw/test_visibility.py index 687945013a..c63e499187 100644 --- a/weasyprint/tests/test_draw/test_visibility.py +++ b/weasyprint/tests/test_draw/test_visibility.py @@ -4,9 +4,6 @@ Test visibility. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..testing_utils import assert_no_logs diff --git a/weasyprint/tests/test_float.py b/weasyprint/tests/test_float.py index b20a8f14af..d54a2d96e6 100644 --- a/weasyprint/tests/test_float.py +++ b/weasyprint/tests/test_float.py @@ -4,9 +4,6 @@ Tests for floating boxes layout. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_fonts.py b/weasyprint/tests/test_fonts.py index 8038839a22..ccbd3bc947 100644 --- a/weasyprint/tests/test_fonts.py +++ b/weasyprint/tests/test_fonts.py @@ -4,9 +4,6 @@ Test the fonts features. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from .test_boxes import render_pages diff --git a/weasyprint/tests/test_layout/__init__.py b/weasyprint/tests/test_layout/__init__.py index bc6f695f34..819702b3fb 100644 --- a/weasyprint/tests/test_layout/__init__.py +++ b/weasyprint/tests/test_layout/__init__.py @@ -5,7 +5,4 @@ Tests for layout, ie. positioning and dimensioning of boxes, line breaks, page breaks. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ diff --git a/weasyprint/tests/test_layout/test_block.py b/weasyprint/tests/test_layout/test_block.py index b21e763ff1..452056795c 100644 --- a/weasyprint/tests/test_layout/test_block.py +++ b/weasyprint/tests/test_layout/test_block.py @@ -4,9 +4,6 @@ Tests for blocks layout. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_layout/test_column.py b/weasyprint/tests/test_layout/test_column.py index a3f125f017..cb13b6338e 100644 --- a/weasyprint/tests/test_layout/test_column.py +++ b/weasyprint/tests/test_layout/test_column.py @@ -4,9 +4,6 @@ Tests for multicolumn layout. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_layout/test_flex.py b/weasyprint/tests/test_layout/test_flex.py index 717673c798..5207567c36 100644 --- a/weasyprint/tests/test_layout/test_flex.py +++ b/weasyprint/tests/test_layout/test_flex.py @@ -4,9 +4,6 @@ Tests for flex layout. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_layout/test_image.py b/weasyprint/tests/test_layout/test_image.py index 6d9d818efd..b4dea719eb 100644 --- a/weasyprint/tests/test_layout/test_image.py +++ b/weasyprint/tests/test_layout/test_image.py @@ -4,9 +4,6 @@ Tests for image layout. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_layout/test_inline.py b/weasyprint/tests/test_layout/test_inline.py index 3bb2d6a46b..826c8de958 100644 --- a/weasyprint/tests/test_layout/test_inline.py +++ b/weasyprint/tests/test_layout/test_inline.py @@ -4,9 +4,6 @@ Tests for inline layout. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_layout/test_inline_block.py b/weasyprint/tests/test_layout/test_inline_block.py index e69521a896..9ef7944ffa 100644 --- a/weasyprint/tests/test_layout/test_inline_block.py +++ b/weasyprint/tests/test_layout/test_inline_block.py @@ -4,9 +4,6 @@ Tests for inline blocks layout. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..test_boxes import render_pages as parse diff --git a/weasyprint/tests/test_layout/test_list.py b/weasyprint/tests/test_layout/test_list.py index f0efcaf901..c311e3e674 100644 --- a/weasyprint/tests/test_layout/test_list.py +++ b/weasyprint/tests/test_layout/test_list.py @@ -4,9 +4,6 @@ Tests for lists layout. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_layout/test_page.py b/weasyprint/tests/test_layout/test_page.py index a57dfb1613..9821d88e2c 100644 --- a/weasyprint/tests/test_layout/test_page.py +++ b/weasyprint/tests/test_layout/test_page.py @@ -4,9 +4,6 @@ Tests for pages layout. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_layout/test_position.py b/weasyprint/tests/test_layout/test_position.py index 10d8ffd239..2db0df3a68 100644 --- a/weasyprint/tests/test_layout/test_position.py +++ b/weasyprint/tests/test_layout/test_position.py @@ -4,9 +4,6 @@ Tests for position property. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from ..test_boxes import render_pages as parse diff --git a/weasyprint/tests/test_layout/test_shrink_to_fit.py b/weasyprint/tests/test_layout/test_shrink_to_fit.py index decd4ef283..a6f789feb7 100644 --- a/weasyprint/tests/test_layout/test_shrink_to_fit.py +++ b/weasyprint/tests/test_layout/test_shrink_to_fit.py @@ -4,9 +4,6 @@ Tests for shrink-to-fit algorithm. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_layout/test_table.py b/weasyprint/tests/test_layout/test_table.py index 4d9804a149..2dbab78910 100644 --- a/weasyprint/tests/test_layout/test_table.py +++ b/weasyprint/tests/test_layout/test_table.py @@ -4,9 +4,6 @@ Tests for layout of tables. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_pdf.py b/weasyprint/tests/test_pdf.py index f75db6d9e8..4305b372f4 100644 --- a/weasyprint/tests/test_pdf.py +++ b/weasyprint/tests/test_pdf.py @@ -4,9 +4,6 @@ Test PDF-related code, including metadata, bookmarks and hyperlinks. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import hashlib diff --git a/weasyprint/tests/test_presentational_hints.py b/weasyprint/tests/test_presentational_hints.py index 294fe2537d..c75041248b 100644 --- a/weasyprint/tests/test_presentational_hints.py +++ b/weasyprint/tests/test_presentational_hints.py @@ -4,9 +4,6 @@ Test the HTML presentational hints. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from .. import CSS, HTML diff --git a/weasyprint/tests/test_stacking.py b/weasyprint/tests/test_stacking.py index e2ce537c3e..f22674406c 100644 --- a/weasyprint/tests/test_stacking.py +++ b/weasyprint/tests/test_stacking.py @@ -2,9 +2,6 @@ weasyprint.tests.stacking ------------------------- - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_target.py b/weasyprint/tests/test_target.py index 2edd644506..ac453ff5d3 100644 --- a/weasyprint/tests/test_target.py +++ b/weasyprint/tests/test_target.py @@ -4,9 +4,6 @@ Test the CSS cross references using target-*() functions. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from .testing_utils import FakeHTML, assert_no_logs diff --git a/weasyprint/tests/test_text.py b/weasyprint/tests/test_text.py index 55119825d5..90142ac44e 100644 --- a/weasyprint/tests/test_text.py +++ b/weasyprint/tests/test_text.py @@ -4,9 +4,6 @@ Test the text layout. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/test_tools.py b/weasyprint/tests/test_tools.py index 9d522d3826..b54b990635 100644 --- a/weasyprint/tests/test_tools.py +++ b/weasyprint/tests/test_tools.py @@ -4,9 +4,6 @@ Test WeasyPrint Web tools. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import io diff --git a/weasyprint/tests/test_unicode.py b/weasyprint/tests/test_unicode.py index a00e240ae3..7c859d499d 100644 --- a/weasyprint/tests/test_unicode.py +++ b/weasyprint/tests/test_unicode.py @@ -4,9 +4,6 @@ Test various unicode texts and filenames. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import os.path diff --git a/weasyprint/tests/test_variables.py b/weasyprint/tests/test_variables.py index b4ba9a82be..2477c495da 100644 --- a/weasyprint/tests/test_variables.py +++ b/weasyprint/tests/test_variables.py @@ -4,9 +4,6 @@ Test CSS custom proproperties, also known as CSS variables. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import pytest diff --git a/weasyprint/tests/testing_utils.py b/weasyprint/tests/testing_utils.py index 1ff6cc74cb..719dd91304 100644 --- a/weasyprint/tests/testing_utils.py +++ b/weasyprint/tests/testing_utils.py @@ -4,9 +4,6 @@ Helpers for tests. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import contextlib diff --git a/weasyprint/text.py b/weasyprint/text.py index 840c50371b..a0b70de8cd 100644 --- a/weasyprint/text.py +++ b/weasyprint/text.py @@ -4,9 +4,6 @@ Interface with Pango to decide where to do line breaks and to draw text. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import re diff --git a/weasyprint/tools/navigator.py b/weasyprint/tools/navigator.py index 91ebc0e768..238530a925 100644 --- a/weasyprint/tools/navigator.py +++ b/weasyprint/tools/navigator.py @@ -4,9 +4,6 @@ A WeasyPrint-based web browser. In your web browser. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from base64 import encodebytes diff --git a/weasyprint/tools/renderer.py b/weasyprint/tools/renderer.py index e65b924ad4..d1bd904aa1 100644 --- a/weasyprint/tools/renderer.py +++ b/weasyprint/tools/renderer.py @@ -5,9 +5,6 @@ A simple web application allowing to type HTML and instantly visualize the result rendered by WeasyPrint. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ from base64 import b64encode diff --git a/weasyprint/urls.py b/weasyprint/urls.py index 5d24e36c36..7690655b4a 100644 --- a/weasyprint/urls.py +++ b/weasyprint/urls.py @@ -4,9 +4,6 @@ Various utility functions and classes. - :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. - :license: BSD, see LICENSE for details. - """ import codecs