X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=segment.py;h=08bc0aa84244bf222655defba7b4a0773f87ebcf;hb=0d469a1c5ce3895f1b3d3ecbf7c58c69d7e0d2ed;hp=27bf103c573f0d228a03741ef34dd360138ad072;hpb=6a89ca3a0906f12f0d3457642a235a4f9bc74ebf;p=cipher-tools.git

diff --git a/segment.py b/segment.py
index 27bf103..08bc0aa 100644
--- a/segment.py
+++ b/segment.py
@@ -3,6 +3,8 @@ import string
 import collections
 from math import log10
 import itertools
+import sys
+sys.setrecursionlimit(1000000)
 
 def memo(f):
     "Memoize function f."