diff --git a/examples/benchmarks/fib.py b/examples/benchmarks/fib.py index 75d59a7..d950d93 100644 --- a/examples/benchmarks/fib.py +++ b/examples/benchmarks/fib.py @@ -1,4 +1,5 @@ #! python +# Copyright (C) 2004-2011, Parrot Foundation. import sys diff --git a/examples/benchmarks/oo1.py b/examples/benchmarks/oo1.py index 6b34140..0087843 100644 --- a/examples/benchmarks/oo1.py +++ b/examples/benchmarks/oo1.py @@ -1,3 +1,4 @@ +# Copyright (C) 2004-2011, Parrot Foundation. class Foo: def __init__(self): self.i = 10 diff --git a/examples/benchmarks/oo2.py b/examples/benchmarks/oo2.py index d5fb174..bb1fc5a 100644 --- a/examples/benchmarks/oo2.py +++ b/examples/benchmarks/oo2.py @@ -1,3 +1,4 @@ +# Copyright (C) 2004-2011, Parrot Foundation. class Foo: def __init__(self): self.i = 10 diff --git a/examples/benchmarks/oo3.py b/examples/benchmarks/oo3.py index e95ce7b..a5529b2 100644 --- a/examples/benchmarks/oo3.py +++ b/examples/benchmarks/oo3.py @@ -1,3 +1,4 @@ +# Copyright (C) 2004-2011, Parrot Foundation. class Foo: def __init__(self): self.i = 10 diff --git a/examples/benchmarks/oo4.py b/examples/benchmarks/oo4.py index 0fc95a6..263c146 100644 --- a/examples/benchmarks/oo4.py +++ b/examples/benchmarks/oo4.py @@ -1,3 +1,4 @@ +# Copyright (C) 2004-2011, Parrot Foundation. class Foo: def __init__(self): self.i = 10 diff --git a/examples/benchmarks/oo5.py b/examples/benchmarks/oo5.py index 800631a..76f95b1 100644 --- a/examples/benchmarks/oo5.py +++ b/examples/benchmarks/oo5.py @@ -1,3 +1,4 @@ +# Copyright (C) 2004-2011, Parrot Foundation. class Foo: def __init__(self): self.i = 10 diff --git a/examples/benchmarks/oo6.py b/examples/benchmarks/oo6.py index f3e42a9..82ba7ef 100644 --- a/examples/benchmarks/oo6.py +++ b/examples/benchmarks/oo6.py @@ -1,3 +1,4 @@ +# Copyright (C) 2004-2011, Parrot Foundation. class Foo: def __init__(self): self.i = 10 diff --git a/examples/benchmarks/oofib.py b/examples/benchmarks/oofib.py index 9beed45..3c55999 100644 --- a/examples/benchmarks/oofib.py +++ b/examples/benchmarks/oofib.py @@ -1,4 +1,5 @@ #! python +# Copyright (C) 2004-2011, Parrot Foundation. import sys diff --git a/examples/benchmarks/vpm.py b/examples/benchmarks/vpm.py index 9c43bb7..10c2531 100644 --- a/examples/benchmarks/vpm.py +++ b/examples/benchmarks/vpm.py @@ -1,4 +1,5 @@ #! python +# Copyright (C) 2004-2011, Parrot Foundation. import string diff --git a/lib/Parrot/Distribution.pm b/lib/Parrot/Distribution.pm index bbba5fe..0c9fed0 100644 --- a/lib/Parrot/Distribution.pm +++ b/lib/Parrot/Distribution.pm @@ -153,6 +153,8 @@ Check the type of checkout. =item C +=item C + =item C Returns the directories which contain source files of the appropriate filetype. @@ -171,6 +173,8 @@ Returns the directories which contain source files of the appropriate filetype. =item C +=item C + =item C Returns the source file with the specified name and of the appropriate filetype. @@ -189,6 +193,8 @@ Returns the source file with the specified name and of the appropriate filetype. =item C +=item C + =item C Returns a sorted list of the source files listed within the MANIFEST of @@ -213,6 +219,7 @@ BEGIN { shebang => qr/^#!\s*perl/, shebang_ext => qr/.t$/, }, + python => { file_exts => ['py'] }, }, header => { c => { file_exts => ['h'] }, }, ); @@ -721,6 +728,36 @@ sub perl_module_file_with_name { return; } +=item C + +Returns the Python language source files within Parrot. + +At the current time, these files are limited to examples and tools that are +useful to Parrot developers. + +Returns a list of Parrot::Docs::File objects. + +=cut + +sub get_python_language_files { + my $self = shift; + + my @files = ( $self->python_source_files,); + + my @python_language_files = (); + foreach my $file (@files) { + next if $self->is_python_exemption($file); + push @python_language_files, $file; + } + + return @python_language_files; +} + +sub is_python_exemption { + my ($self, $file) = @_; + return; +} + =item C Returns the documentation directory. diff --git a/t/codingstd/copyright.t b/t/codingstd/copyright.t index 36a4ad4..d0216b8 100644 --- a/t/codingstd/copyright.t +++ b/t/codingstd/copyright.t @@ -41,6 +41,7 @@ my @files = @ARGV ? <@ARGV> : ( $DIST->get_perl_language_files(), $DIST->get_make_language_files(), $DIST->get_pir_language_files(), + $DIST->get_python_language_files(), ); my ( @no_copyright_files, diff --git a/tools/dev/gdb-pp-load.py b/tools/dev/gdb-pp-load.py index a70805e..d7dd6d3 100644 --- a/tools/dev/gdb-pp-load.py +++ b/tools/dev/gdb-pp-load.py @@ -1,3 +1,4 @@ +# Copyright (C) 2011, Parrot Foundation. import gdb.printing import sys diff --git a/tools/dev/gdb-pp.py b/tools/dev/gdb-pp.py index fcc4b1b..ae8df4c 100644 --- a/tools/dev/gdb-pp.py +++ b/tools/dev/gdb-pp.py @@ -1,3 +1,4 @@ +# Copyright (C) 2011, Parrot Foundation. from gdb.printing import PrettyPrinter, SubPrettyPrinter import gdb.types import gdb