]> granicus.if.org Git - python/commitdiff
Make test_mhlib run again.
authorMichael W. Hudson <mwh@python.net>
Sun, 2 Jun 2002 16:12:06 +0000 (16:12 +0000)
committerMichael W. Hudson <mwh@python.net>
Sun, 2 Jun 2002 16:12:06 +0000 (16:12 +0000)
There's some wierdness here, but the test ran before and not after,
so I'm just hacking the change out.  Someone more motivated than
me can work out what's really happening.

Raymond: *PLEASE* run the test suite before checking things like
this in!

Lib/mhlib.py

index feb554efa189e1f8ab9c1e5246a3bb8ace6ca6d1..e5900acff9cec908ab7553269fed6f28b2ea4565 100644 (file)
@@ -788,7 +788,7 @@ class IntSet:
         self.pairs = []
         self.sep = sep
         self.rng = rng
-        if data is not None: self.fromstring(data)
+        if data: self.fromstring(data)
 
     def reset(self):
         self.pairs = []