[Zope-CVS] CVS: Packages/tcpwatch - tcpwatch.py:1.11

Jim Fulton jim at zope.com
Mon Oct 4 10:30:26 EDT 2004


Update of /cvs-repository/Packages/tcpwatch
In directory cvs.zope.org:/tmp/cvs-serv4660

Modified Files:
	tcpwatch.py 
Log Message:
Added 'b' flag to open so that data are recorded correctly on Windows.


=== Packages/tcpwatch/tcpwatch.py 1.10 => 1.11 ===
--- Packages/tcpwatch/tcpwatch.py:1.10	Thu Aug 19 12:16:38 2004
+++ Packages/tcpwatch/tcpwatch.py	Mon Oct  4 10:30:25 2004
@@ -460,7 +460,7 @@
         """
         filename = '%s%04d.%s' % (self._prefix, self._log_number, extension)
         fqpath = os.path.join(self._directory, filename)
-        return open(fqpath, 'a')
+        return open(fqpath, 'ab')
 
 
 #############################################################################



More information about the Zope-CVS mailing list