]> granicus.if.org Git - python/commitdiff
<rotorobj>.setkey() now requires exactly one argument
authorBarry Warsaw <barry@python.org>
Thu, 2 Jan 1997 20:02:44 +0000 (20:02 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 2 Jan 1997 20:02:44 +0000 (20:02 +0000)
Lib/test/test_rotor.py

index 475ac16cd89d646275fed8782b22ae419f01b756..338ea9d0dae4c69e4f46bb9446cf4d14f032149e 100644 (file)
@@ -21,5 +21,8 @@ print B1
 if B1 <> B:
     print 'decryptmore failed'
 
-r.setkey()
+try:
+    r.setkey()
+except TypeError:
+    pass
 r.setkey('you guessed it!')