From 0f0b4ee73e526a5d196f02eba3c7ac337b244901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Fri, 26 Sep 2014 23:38:05 +0000 Subject: [PATCH] remove superfluous if block --- rfc3986/uri.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rfc3986/uri.py b/rfc3986/uri.py index 7d16c8a..818512e 100644 --- a/rfc3986/uri.py +++ b/rfc3986/uri.py @@ -147,9 +147,7 @@ class URIReference(namedtuple('URIReference', URI_COMPONENTS)): :returns: ``True`` if it is an absolute URI, ``False`` otherwise. :rtype: bool """ - if ABSOLUTE_URI_MATCHER.match(self.unsplit()): - return True - return False + return bool(ABSOLUTE_URI_MATCHER.match(self.unsplit())) def is_valid(self, **kwargs): """Determines if the URI is valid.