diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-25 16:00:23 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-25 16:00:23 -0700 |
commit | cd1bdf1621206dcf1a57be76cbea7ba3db3d286a (patch) | |
tree | cb3e14f74cb02baf29301fc6c7b993f88c61d4ec /tools/shared.py | |
parent | 194a43696e1e33ad3894b0a3c0d916405d25b428 (diff) |
restore limit_size
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py index e9bc6dfd..6150060b 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -399,7 +399,7 @@ def line_splitter(data): return out -def limit_size(string, MAX=8000*20): +def limit_size(string, MAX=80*20): if len(string) < MAX: return string return string[0:MAX/2] + '\n[..]\n' + string[-MAX/2:] |