From c99dbefa920998b54d9b4312e059517a2c4b19cc Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Wed, 17 Feb 2016 08:35:53 -0800 Subject: [PATCH] shorter __repr__ can fit on one line --- tldp/sources.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tldp/sources.py b/tldp/sources.py index ee7d904..3acb98a 100644 --- a/tldp/sources.py +++ b/tldp/sources.py @@ -13,8 +13,7 @@ from .typeguesser import guess, knownextensions class SourceCollection(collections.MutableMapping): def __repr__(self): - return '<%s:(%s docs)>' % \ - (self.__class__.__name__, len(self)) + return '<%s:(%s docs)>' % (self.__class__.__name__, len(self)) def __init__(self, args=None): if args is None: