Skip to content

Commit eb7ee19

Browse files
author
Richard Jones
committed
hrm. don't activate detectors if they're just pyc
1 parent 259fbed commit eb7ee19

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

roundup/templates/classic/detectors/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: __init__.py,v 1.4 2002-09-10 01:07:06 richard Exp $
18+
#$Id: __init__.py,v 1.5 2002-09-11 07:10:08 richard Exp $
1919

2020
def init(db):
2121
''' execute the init functions of all the modules in this directory
@@ -26,8 +26,9 @@ def init(db):
2626
sys.path.insert(0, this_dir)
2727
for file in os.listdir(this_dir):
2828
file, ext = os.path.splitext(file)
29-
if file == '__init__': continue
30-
if ext in ('.py', '.pyc'):
29+
if file == '__init__':
30+
continue
31+
if ext in '.py':
3132
module = __import__(file)
3233
module.init(db)
3334
finally:

0 commit comments

Comments
 (0)