# HG changeset patch # User Bryan O'Sullivan # Date 2005-09-04 22:12:20 # Node ID b0f6053df539edf339b7fd22c33bec128d5feedf # Parent cb4c423cbb382f7084dc1e0e4616f8f865d5b178 patchbomb: continue if we can't import readline. diff --git a/contrib/patchbomb b/contrib/patchbomb --- a/contrib/patchbomb +++ b/contrib/patchbomb @@ -52,13 +52,18 @@ from mercurial import hg from mercurial import ui import os import popen2 -import readline import smtplib import socket import sys import tempfile import time +try: + # readline gives raw_input editing capabilities, but is not + # present on windows + import readline +except ImportError: pass + def diffstat(patch): fd, name = tempfile.mkstemp() try: