From 04d1a78791f616ef52687a715afab6dc9c864c8d Mon Sep 17 00:00:00 2001 From: hansenerd Date: Thu, 24 Jul 2014 16:51:54 +0200 Subject: [PATCH] fix not in check --- blogtopoid/blogtopoid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blogtopoid/blogtopoid.py b/blogtopoid/blogtopoid.py index 1e64345..ed973a1 100644 --- a/blogtopoid/blogtopoid.py +++ b/blogtopoid/blogtopoid.py @@ -185,7 +185,7 @@ class Post(object): # rewrite relative img-srcs to full paths. d = PyQuery(self.body) for img in d.find('img'): - if not '/' in img.attrib['src']: + if '/' not in img.attrib['src']: img.attrib['src'] = '{}{}/{}'.format(config.blogurl, self.outputpath, img.attrib['src'])