summaryrefslogtreecommitdiff
path: root/coverage
diff options
context:
space:
mode:
Diffstat (limited to 'coverage')
-rw-r--r--coverage/__init__.py3
-rw-r--r--coverage/__main__.py4
-rw-r--r--coverage/annotate.py5
-rw-r--r--coverage/backunittest.py3
-rw-r--r--coverage/backward.py3
-rw-r--r--coverage/bytecode.py3
-rw-r--r--coverage/cmdline.py3
-rw-r--r--coverage/collector.py5
-rw-r--r--coverage/config.py3
-rw-r--r--coverage/control.py5
-rw-r--r--coverage/data.py5
-rw-r--r--coverage/debug.py3
-rw-r--r--coverage/env.py3
-rw-r--r--coverage/execfile.py3
-rw-r--r--coverage/files.py3
-rw-r--r--coverage/fullcoverage/encodings.py3
-rw-r--r--coverage/html.py5
-rw-r--r--coverage/htmlfiles/coverage_html.js3
-rw-r--r--coverage/htmlfiles/index.html3
-rw-r--r--coverage/htmlfiles/pyfile.html3
-rw-r--r--coverage/htmlfiles/style.css5
-rw-r--r--coverage/misc.py5
-rw-r--r--coverage/monkey.py5
-rw-r--r--coverage/parser.py5
-rw-r--r--coverage/phystokens.py3
-rw-r--r--coverage/plugin.py3
-rw-r--r--coverage/plugin_support.py3
-rw-r--r--coverage/python.py3
-rw-r--r--coverage/pytracer.py5
-rw-r--r--coverage/report.py5
-rw-r--r--coverage/results.py3
-rw-r--r--coverage/summary.py3
-rw-r--r--coverage/templite.py3
-rw-r--r--coverage/test_helpers.py3
-rw-r--r--coverage/tracer.c5
-rw-r--r--coverage/version.py3
-rw-r--r--coverage/xmlreport.py3
37 files changed, 124 insertions, 12 deletions
diff --git a/coverage/__init__.py b/coverage/__init__.py
index b59bad35..f9e8a04b 100644
--- a/coverage/__init__.py
+++ b/coverage/__init__.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Code coverage measurement for Python.
Ned Batchelder
diff --git a/coverage/__main__.py b/coverage/__main__.py
index 55e0d259..35ab87a5 100644
--- a/coverage/__main__.py
+++ b/coverage/__main__.py
@@ -1,4 +1,8 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Coverage.py's main entry point."""
+
import sys
from coverage.cmdline import main
sys.exit(main())
diff --git a/coverage/annotate.py b/coverage/annotate.py
index 91bbe670..4b4966e9 100644
--- a/coverage/annotate.py
+++ b/coverage/annotate.py
@@ -1,4 +1,7 @@
-"""Source file annotation for Coverage."""
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+"""Source file annotation for coverage.py."""
import io
import os
diff --git a/coverage/backunittest.py b/coverage/backunittest.py
index 5aff043f..09574ccb 100644
--- a/coverage/backunittest.py
+++ b/coverage/backunittest.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Implementations of unittest features from the future."""
# Use unittest2 if it's available, otherwise unittest. This gives us
diff --git a/coverage/backward.py b/coverage/backward.py
index 46c70fb6..fecb028a 100644
--- a/coverage/backward.py
+++ b/coverage/backward.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Add things to old Pythons so I can pretend they are newer."""
# This file does lots of tricky stuff, so disable a bunch of pylint warnings.
diff --git a/coverage/bytecode.py b/coverage/bytecode.py
index d7304936..82929cef 100644
--- a/coverage/bytecode.py
+++ b/coverage/bytecode.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Bytecode manipulation for coverage.py"""
import opcode
diff --git a/coverage/cmdline.py b/coverage/cmdline.py
index c0c9a986..af5ff0c5 100644
--- a/coverage/cmdline.py
+++ b/coverage/cmdline.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Command-line support for coverage.py."""
import glob
diff --git a/coverage/collector.py b/coverage/collector.py
index 8ea0427d..52a80f60 100644
--- a/coverage/collector.py
+++ b/coverage/collector.py
@@ -1,4 +1,7 @@
-"""Raw data collector for Coverage."""
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+"""Raw data collector for coverage.py."""
import os, sys
diff --git a/coverage/config.py b/coverage/config.py
index 63f30180..c60df100 100644
--- a/coverage/config.py
+++ b/coverage/config.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Config file for coverage.py"""
import os, re, sys
diff --git a/coverage/control.py b/coverage/control.py
index ef9b8f11..d5650131 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -1,4 +1,7 @@
-"""Core control stuff for Coverage."""
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+"""Core control stuff for coverage.py."""
import atexit
import inspect
diff --git a/coverage/data.py b/coverage/data.py
index 704a3481..930e04ae 100644
--- a/coverage/data.py
+++ b/coverage/data.py
@@ -1,4 +1,7 @@
-"""Coverage data for Coverage."""
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+"""Coverage data for coverage.py."""
import glob
import json
diff --git a/coverage/debug.py b/coverage/debug.py
index 45d720c3..8d36c1cd 100644
--- a/coverage/debug.py
+++ b/coverage/debug.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Control of and utilities for debugging."""
import inspect
diff --git a/coverage/env.py b/coverage/env.py
index c1d838b1..1d2846c6 100644
--- a/coverage/env.py
+++ b/coverage/env.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Determine facts about the environment."""
import os
diff --git a/coverage/execfile.py b/coverage/execfile.py
index 942bfd57..121f3731 100644
--- a/coverage/execfile.py
+++ b/coverage/execfile.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Execute files of Python code."""
import marshal
diff --git a/coverage/files.py b/coverage/files.py
index 154954d6..762445fd 100644
--- a/coverage/files.py
+++ b/coverage/files.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""File wrangling."""
import fnmatch
diff --git a/coverage/fullcoverage/encodings.py b/coverage/fullcoverage/encodings.py
index df83366b..699f3863 100644
--- a/coverage/fullcoverage/encodings.py
+++ b/coverage/fullcoverage/encodings.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Imposter encodings module that installs a coverage-style tracer.
This is NOT the encodings module; it is an imposter that sets up tracing
diff --git a/coverage/html.py b/coverage/html.py
index 62c13e29..9022ac4f 100644
--- a/coverage/html.py
+++ b/coverage/html.py
@@ -1,4 +1,7 @@
-"""HTML reporting for Coverage."""
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+"""HTML reporting for coverage.py."""
import datetime
import json
diff --git a/coverage/htmlfiles/coverage_html.js b/coverage/htmlfiles/coverage_html.js
index 5ef0ece5..bd6a8753 100644
--- a/coverage/htmlfiles/coverage_html.js
+++ b/coverage/htmlfiles/coverage_html.js
@@ -1,3 +1,6 @@
+// Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+// For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
// Coverage.py HTML report browser code.
/*jslint browser: true, sloppy: true, vars: true, plusplus: true, maxerr: 50, indent: 4 */
/*global coverage: true, document, window, $ */
diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html
index 767de41e..25ced0eb 100644
--- a/coverage/htmlfiles/index.html
+++ b/coverage/htmlfiles/index.html
@@ -1,3 +1,6 @@
+{# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 #}
+{# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt #}
+
<!DOCTYPE html>
<html>
<head>
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html
index bf65ee59..7bf9f554 100644
--- a/coverage/htmlfiles/pyfile.html
+++ b/coverage/htmlfiles/pyfile.html
@@ -1,3 +1,6 @@
+{# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 #}
+{# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt #}
+
<!DOCTYPE html>
<html>
<head>
diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css
index 038335c1..2dfb8f65 100644
--- a/coverage/htmlfiles/style.css
+++ b/coverage/htmlfiles/style.css
@@ -1,4 +1,7 @@
-/* CSS styles for Coverage. */
+/* Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 */
+/* For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt */
+
+/* CSS styles for coverage.py. */
/* Page-wide styles */
html, body, h1, h2, h3, p, table, td, th {
margin: 0;
diff --git a/coverage/misc.py b/coverage/misc.py
index 6b7321da..c794b551 100644
--- a/coverage/misc.py
+++ b/coverage/misc.py
@@ -1,4 +1,7 @@
-"""Miscellaneous stuff for Coverage."""
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+"""Miscellaneous stuff for coverage.py."""
import errno
import hashlib
diff --git a/coverage/monkey.py b/coverage/monkey.py
index 417b64fe..c4ec68c6 100644
--- a/coverage/monkey.py
+++ b/coverage/monkey.py
@@ -1,4 +1,7 @@
-"""Monkey-patching to make coverage work right in some cases."""
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+"""Monkey-patching to make coverage.py work right in some cases."""
import multiprocessing
import multiprocessing.process
diff --git a/coverage/parser.py b/coverage/parser.py
index 173bdf9d..2841c6bb 100644
--- a/coverage/parser.py
+++ b/coverage/parser.py
@@ -1,4 +1,7 @@
-"""Code parsing for Coverage."""
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+"""Code parsing for coverage.py."""
import collections
import dis
diff --git a/coverage/phystokens.py b/coverage/phystokens.py
index 6d8e1ece..7a033aec 100644
--- a/coverage/phystokens.py
+++ b/coverage/phystokens.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Better tokenizing for coverage.py."""
import codecs
diff --git a/coverage/plugin.py b/coverage/plugin.py
index 44dab55f..c039f817 100644
--- a/coverage/plugin.py
+++ b/coverage/plugin.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Plugin interfaces for coverage.py"""
import os
diff --git a/coverage/plugin_support.py b/coverage/plugin_support.py
index ae72f797..5c577be1 100644
--- a/coverage/plugin_support.py
+++ b/coverage/plugin_support.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Support for plugins."""
import os.path
diff --git a/coverage/python.py b/coverage/python.py
index b1667f6d..5c126c4e 100644
--- a/coverage/python.py
+++ b/coverage/python.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Python source expertise for coverage.py"""
import os.path
diff --git a/coverage/pytracer.py b/coverage/pytracer.py
index 3f03aaf7..c657ad01 100644
--- a/coverage/pytracer.py
+++ b/coverage/pytracer.py
@@ -1,4 +1,7 @@
-"""Raw data collector for Coverage."""
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+"""Raw data collector for coverage.py."""
import dis
import sys
diff --git a/coverage/report.py b/coverage/report.py
index 33a46070..fa081862 100644
--- a/coverage/report.py
+++ b/coverage/report.py
@@ -1,4 +1,7 @@
-"""Reporter foundation for Coverage."""
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+"""Reporter foundation for coverage.py."""
import os
diff --git a/coverage/results.py b/coverage/results.py
index c7a2f95e..f15fae74 100644
--- a/coverage/results.py
+++ b/coverage/results.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Results of coverage measurement."""
import collections
diff --git a/coverage/summary.py b/coverage/summary.py
index 60cb4151..03270c04 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Summary reporting"""
import sys
diff --git a/coverage/templite.py b/coverage/templite.py
index 9f882cf2..8595b868 100644
--- a/coverage/templite.py
+++ b/coverage/templite.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""A simple Python template renderer, for a nano-subset of Django syntax."""
# Coincidentally named the same as http://code.activestate.com/recipes/496702/
diff --git a/coverage/test_helpers.py b/coverage/test_helpers.py
index 278b0a8a..3ddb48ba 100644
--- a/coverage/test_helpers.py
+++ b/coverage/test_helpers.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""Mixin classes to help make good tests."""
import atexit
diff --git a/coverage/tracer.c b/coverage/tracer.c
index 7cdb7727..11606ebd 100644
--- a/coverage/tracer.c
+++ b/coverage/tracer.c
@@ -1,4 +1,7 @@
-/* C-based Tracer for Coverage. */
+/* Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 */
+/* For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt */
+
+/* C-based Tracer for coverage.py. */
#include "Python.h"
#include "structmember.h"
diff --git a/coverage/version.py b/coverage/version.py
index 246dcba2..f95881cc 100644
--- a/coverage/version.py
+++ b/coverage/version.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""The version and URL for coverage.py"""
# This file is exec'ed in setup.py, don't import anything!
diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py
index aa12ab2d..b60cecd2 100644
--- a/coverage/xmlreport.py
+++ b/coverage/xmlreport.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
"""XML reporting for coverage.py"""
import os