Tqdm longer descriptions

This commit is contained in:
Casper da Costa-Luis
2019-08-18 00:19:49 +01:00
parent 34dc163329
commit 9a2dea86c8
+1 -1
View File
@@ -81,7 +81,7 @@ class Tqdm(tqdm):
self.update(current - self.n)
@classmethod
def truncate(cls, s, max_len=10, end=True, fill="..."):
def truncate(cls, s, max_len=25, end=True, fill="..."):
"""
Guarantee len(output) < max_lenself.
>>> truncate("hello", 4)