Expand © and remove unnecessary encoding lines

The word "Copyright" alone is sufficient to claim copyright, the ©
symbol need not be present.[1] This allows us to expand the "©" symbol
into "(c)" to avoid introducing non-ASCII characters.

As per PEP 263, a Python file with non-ASCII characters must have a
line with "coding: <some-encoding>". Python files containing only
7-bit ASCII characters need no such line.[2]

This commit expands the non-ASCII Unicode copyright symbols and
removes the now unnecessary encoding lines.

[1]: http://www.copyright.gov/circs/circ03.pdf
[2]: http://legacy.python.org/dev/peps/pep-0263/

Change-Id: I2d7be303b515be0e3e891f041477c99cedcca1bb
This commit is contained in:
Martin Geisler 2014-05-30 18:03:10 +02:00
parent aa7c658156
commit 7b0af7ac65
3 changed files with 1 additions and 4 deletions

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import print_function

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Copyright (c) 2012 OpenStack Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -1,6 +1,5 @@
# -*- encoding: utf-8 -*-
#
# Copyright © 2013 Intel Corp.
# Copyright (c) 2013 Intel Corp.
#
# Author: Lianhao Lu <lianhao.lu@intel.com>
#