diff --git a/examples/benchmarks/fib.py b/examples/benchmarks/fib.py
index 75d59a7..d950d93 100644
a
|
b
|
|
1 | 1 | #! python |
| 2 | # Copyright (C) 2004-2011, Parrot Foundation. |
2 | 3 | |
3 | 4 | import sys |
4 | 5 | |
diff --git a/examples/benchmarks/oo1.py b/examples/benchmarks/oo1.py
index 6b34140..0087843 100644
a
|
b
|
|
| 1 | # Copyright (C) 2004-2011, Parrot Foundation. |
1 | 2 | class Foo: |
2 | 3 | def __init__(self): |
3 | 4 | self.i = 10 |
diff --git a/examples/benchmarks/oo2.py b/examples/benchmarks/oo2.py
index d5fb174..bb1fc5a 100644
a
|
b
|
|
| 1 | # Copyright (C) 2004-2011, Parrot Foundation. |
1 | 2 | class Foo: |
2 | 3 | def __init__(self): |
3 | 4 | self.i = 10 |
diff --git a/examples/benchmarks/oo3.py b/examples/benchmarks/oo3.py
index e95ce7b..a5529b2 100644
a
|
b
|
|
| 1 | # Copyright (C) 2004-2011, Parrot Foundation. |
1 | 2 | class Foo: |
2 | 3 | def __init__(self): |
3 | 4 | self.i = 10 |
diff --git a/examples/benchmarks/oo4.py b/examples/benchmarks/oo4.py
index 0fc95a6..263c146 100644
a
|
b
|
|
| 1 | # Copyright (C) 2004-2011, Parrot Foundation. |
1 | 2 | class Foo: |
2 | 3 | def __init__(self): |
3 | 4 | self.i = 10 |
diff --git a/examples/benchmarks/oo5.py b/examples/benchmarks/oo5.py
index 800631a..76f95b1 100644
a
|
b
|
|
| 1 | # Copyright (C) 2004-2011, Parrot Foundation. |
1 | 2 | class Foo: |
2 | 3 | def __init__(self): |
3 | 4 | self.i = 10 |
diff --git a/examples/benchmarks/oo6.py b/examples/benchmarks/oo6.py
index f3e42a9..82ba7ef 100644
a
|
b
|
|
| 1 | # Copyright (C) 2004-2011, Parrot Foundation. |
1 | 2 | class Foo: |
2 | 3 | def __init__(self): |
3 | 4 | self.i = 10 |
diff --git a/examples/benchmarks/oofib.py b/examples/benchmarks/oofib.py
index 9beed45..3c55999 100644
a
|
b
|
|
1 | 1 | #! python |
| 2 | # Copyright (C) 2004-2011, Parrot Foundation. |
2 | 3 | |
3 | 4 | import sys |
4 | 5 | |
diff --git a/examples/benchmarks/vpm.py b/examples/benchmarks/vpm.py
index 9c43bb7..10c2531 100644
a
|
b
|
|
1 | 1 | #! python |
| 2 | # Copyright (C) 2004-2011, Parrot Foundation. |
2 | 3 | |
3 | 4 | import string |
4 | 5 | |
diff --git a/lib/Parrot/Distribution.pm b/lib/Parrot/Distribution.pm
index bbba5fe..0c9fed0 100644
a
|
b
|
|
153 | 153 | |
154 | 154 | =item C<pmc_source_file_directories()> |
155 | 155 | |
| 156 | =item C<python_source_file_directories()> |
| 157 | |
156 | 158 | =item C<yacc_source_file_directories()> |
157 | 159 | |
158 | 160 | Returns the directories which contain source files of the appropriate filetype. |
… |
… |
|
171 | 173 | |
172 | 174 | =item C<pmc_source_file_with_name()> |
173 | 175 | |
| 176 | =item C<python_source_file_with_name()> |
| 177 | |
174 | 178 | =item C<yacc_source_file_with_name()> |
175 | 179 | |
176 | 180 | Returns the source file with the specified name and of the appropriate filetype. |
… |
… |
|
189 | 193 | |
190 | 194 | =item C<pmc_source_files()> |
191 | 195 | |
| 196 | =item C<python_source_files()> |
| 197 | |
192 | 198 | =item C<yacc_source_files()> |
193 | 199 | |
194 | 200 | Returns a sorted list of the source files listed within the MANIFEST of |
… |
… |
|
213 | 219 | shebang => qr/^#!\s*perl/, |
214 | 220 | shebang_ext => qr/.t$/, |
215 | 221 | }, |
| 222 | python => { file_exts => ['py'] }, |
216 | 223 | }, |
217 | 224 | header => { c => { file_exts => ['h'] }, }, |
218 | 225 | ); |
… |
… |
|
721 | 728 | return; |
722 | 729 | } |
723 | 730 | |
| 731 | =item C<get_python_language_files()> |
| 732 | |
| 733 | Returns the Python language source files within Parrot. |
| 734 | |
| 735 | At the current time, these files are limited to examples and tools that are |
| 736 | useful to Parrot developers. |
| 737 | |
| 738 | Returns a list of Parrot::Docs::File objects. |
| 739 | |
| 740 | =cut |
| 741 | |
| 742 | sub get_python_language_files { |
| 743 | my $self = shift; |
| 744 | |
| 745 | my @files = ( $self->python_source_files,); |
| 746 | |
| 747 | my @python_language_files = (); |
| 748 | foreach my $file (@files) { |
| 749 | next if $self->is_python_exemption($file); |
| 750 | push @python_language_files, $file; |
| 751 | } |
| 752 | |
| 753 | return @python_language_files; |
| 754 | } |
| 755 | |
| 756 | sub is_python_exemption { |
| 757 | my ($self, $file) = @_; |
| 758 | return; |
| 759 | } |
| 760 | |
724 | 761 | =item C<docs_directory()> |
725 | 762 | |
726 | 763 | Returns the documentation directory. |
diff --git a/t/codingstd/copyright.t b/t/codingstd/copyright.t
index 36a4ad4..d0216b8 100644
a
|
b
|
|
41 | 41 | $DIST->get_perl_language_files(), |
42 | 42 | $DIST->get_make_language_files(), |
43 | 43 | $DIST->get_pir_language_files(), |
| 44 | $DIST->get_python_language_files(), |
44 | 45 | ); |
45 | 46 | my ( |
46 | 47 | @no_copyright_files, |
diff --git a/tools/dev/gdb-pp-load.py b/tools/dev/gdb-pp-load.py
index a70805e..d7dd6d3 100644
a
|
b
|
|
| 1 | # Copyright (C) 2011, Parrot Foundation. |
1 | 2 | import gdb.printing |
2 | 3 | import sys |
3 | 4 | |
diff --git a/tools/dev/gdb-pp.py b/tools/dev/gdb-pp.py
index fcc4b1b..ae8df4c 100644
a
|
b
|
|
| 1 | # Copyright (C) 2011, Parrot Foundation. |
1 | 2 | from gdb.printing import PrettyPrinter, SubPrettyPrinter |
2 | 3 | import gdb.types |
3 | 4 | import gdb |