[Spambayes-checkins] spambayes pop3proxy.py,1.28,1.29
Richie Hindle
richiehindle@users.sourceforge.net
Thu Nov 28 17:05:00 2002
Update of /cvsroot/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv15372
Modified Files:
pop3proxy.py
Log Message:
Don't introduce module-level variables in the __main__ code, because
they mask potential NameErrors later on.
Index: pop3proxy.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/pop3proxy.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** pop3proxy.py 28 Nov 2002 16:35:57 -0000 1.28
--- pop3proxy.py 28 Nov 2002 17:04:58 -0000 1.29
***************
*** 1572,1576 ****
# ===================================================================
! if __name__ == '__main__':
# Read the arguments.
try:
--- 1572,1576 ----
# ===================================================================
! def run():
# Read the arguments.
try:
***************
*** 1633,1634 ****
--- 1633,1637 ----
else:
print >>sys.stderr, __doc__
+
+ if __name__ == '__main__':
+ run()
More information about the Spambayes-checkins
mailing list