From 555ecf22280e6849e36f680494157465c6c847e2 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 27 Jun 2010 18:19:13 -0400 Subject: Empty python files (like __init__.py) are shown as having zero statements, not one. Fixes #1. --- test/modules/pkg1/__init__.py | 3 +++ test/modules/pkg2/__init__.py | 2 ++ 2 files changed, 5 insertions(+) (limited to 'test/modules') diff --git a/test/modules/pkg1/__init__.py b/test/modules/pkg1/__init__.py index e69de29b..2dfeb9c1 100644 --- a/test/modules/pkg1/__init__.py +++ b/test/modules/pkg1/__init__.py @@ -0,0 +1,3 @@ +# This __init__.py has a module-level docstring, which is counted as a +# statement. +"""A simple package for testing with.""" diff --git a/test/modules/pkg2/__init__.py b/test/modules/pkg2/__init__.py index e69de29b..090efbf5 100644 --- a/test/modules/pkg2/__init__.py +++ b/test/modules/pkg2/__init__.py @@ -0,0 +1,2 @@ +# This is an __init__.py file, with no executable statements in it. +# This comment shouldn't confuse the parser. -- cgit v1.2.1