diff --git a/README.rst b/README.rst index 8382cc4..7ca0e55 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -|PyPI version| |Build Status| +|PyPI version| |Build Status| |Dependency Status| blogtopoid ========== @@ -51,3 +51,5 @@ TODO :target: https://pypi.python.org/pypi/blogtopoid .. |Build Status| image:: https://travis-ci.org/hansenerd/blogtopoid.png?branch=master :target: https://travis-ci.org/hansenerd/blogtopoid +.. |Dependency Status| image:: https://gemnasium.com/hansenerd/blogtopoid.svg + :target: https://gemnasium.com/hansenerd/blogtopoid diff --git a/blogtopoid/__init__.py b/blogtopoid/__init__.py index a39f440..7d1e85d 100644 --- a/blogtopoid/__init__.py +++ b/blogtopoid/__init__.py @@ -8,8 +8,6 @@ import pkg_resources from argparse import ArgumentParser -#hashstore = Hashstore('hashstore.json') - def main(): """ run blogtopoid. 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']) diff --git a/requirements.txt b/requirements.txt index 3248a78..2db8824 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,4 @@ cssmin==0.2.0 docutils==0.11 markdown2==2.2.1 pyquery==1.2.8 -python-slugify==1.0 +python-slugify==0.0.7