From ed5ce784d4d0d91c819288317508ff096bac3d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Tue, 5 Jul 2005 13:09:47 +0000 Subject: [PATCH] more pythonic --- pisi/fetcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/fetcher.py b/pisi/fetcher.py index 22a82b8b..d372b532 100644 --- a/pisi/fetcher.py +++ b/pisi/fetcher.py @@ -128,7 +128,7 @@ class Fetcher: except HTTPException, e: self.err(('(%s): %s') % (e.__class__.__name__, e)) - if not headers is None and not headers.has_key('Content-Length'): + if headers and not headers.has_key('Content-Length'): totalsize = 0 # could not get the totalsize of file else: totalsize = int(headers['Content-Length'])