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'])