[PATCH] patchbomb: fix cStringIO import (spotted by pychecker)

Christian Ebert blacktrash at gmx.net
Sat Apr 5 10:50:48 CDT 2008


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1207410490 -7200
# Node ID a135374ed5fcdd6ecf8ce253056a779e609d57ad
# Parent  301d2441fae22d3d87826b1965e7505ef0a319d6
patchbomb: fix cStringIO import (spotted by pychecker)

diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -64,10 +64,9 @@
 #
 # That should be all.  Now your patchbomb is on its way out.
 
-import os, errno, socket, tempfile
+import os, errno, socket, tempfile, cStringIO
 import email.MIMEMultipart, email.MIMEText, email.MIMEBase
 import email.Utils, email.Encoders, email.Generator
-import cStringIO.StringIO
 from mercurial import cmdutil, commands, hg, mail, patch, util
 from mercurial.i18n import _
 from mercurial.node import bin


More information about the Mercurial-devel mailing list