From 1f25c9c24d37634dcb2ea1ac4f51d6557814f014 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 30 Sep 2011 01:06:39 +0300 Subject: [PATCH 17/18] idletest: The data for an IRC event can be [] too --- tests/twisted/idletest.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/twisted/idletest.py b/tests/twisted/idletest.py index 63e0af3..71e6d8e 100644 --- a/tests/twisted/idletest.py +++ b/tests/twisted/idletest.py @@ -12,7 +12,7 @@ from twisted.words.protocols import irc from twisted.internet import reactor, ssl def make_irc_event(type, data): - if data is not None: + if data: data[-1] = data[-1].rstrip('\r\n') event = servicetest.Event(type, data=data) return event -- 1.7.6.2