Mercurial > feed2twitter
changeset 30:fa175368618d tip
Fixing identation
author | Walter Cruz <walter@waltercruz.com> |
---|---|
date | Wed, 19 Aug 2009 16:18:04 -0300 |
parents | 606307f5bfa1 |
children | |
files | feed2twitter/feed2twitter.egg-info/PKG-INFO feed2twitter/feed2twitter/__init__.py |
diffstat | 2 files changed, 20 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/feed2twitter/feed2twitter.egg-info/PKG-INFO Wed Aug 19 16:09:48 2009 -0300 +++ b/feed2twitter/feed2twitter.egg-info/PKG-INFO Wed Aug 19 16:18:04 2009 -0300 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: feed2twitter -Version: 0.6.4dev +Version: 0.6.5dev Summary: Publish your feed items to twitter Home-page: http://www.assembla.com/spaces/feed2twitter Author: Walter Cruz
--- a/feed2twitter/feed2twitter/__init__.py Wed Aug 19 16:09:48 2009 -0300 +++ b/feed2twitter/feed2twitter/__init__.py Wed Aug 19 16:18:04 2009 -0300 @@ -121,27 +121,27 @@ except IOError: print >>sys.stderr, "File %s not found" % configfile sys.exit(2) - conf.readfp(fd) + conf.readfp(fd) - url = conf.get("global", "url").strip() - username = conf.get("global", "username").strip() - password = conf.get("global", "password").strip() - mode = conf.get("global","mode").strip() - try: - items = int(conf.get("global","items").strip()) - except NoOptionError: - items = 5 + url = conf.get("global", "url").strip() + username = conf.get("global", "username").strip() + password = conf.get("global", "password").strip() + mode = conf.get("global","mode").strip() + try: + items = int(conf.get("global","items").strip()) + except NoOptionError: + items = 5 - try: - interval = parsetime(conf.get("global","interval").strip()) - except: - print('Error in the interval setting') - sys.exit(1) + try: + interval = parsetime(conf.get("global","interval").strip()) + except: + print('Error in the interval setting') + sys.exit(1) - try: - shortener = conf.get('global','shortener').strip() - except NoOptionError: - shortener = 'tinyurl' + try: + shortener = conf.get('global','shortener').strip() + except NoOptionError: + shortener = 'tinyurl' else: url = kwargs['url'] username = kwargs['username'] @@ -161,5 +161,5 @@ feed2tw.update() time.sleep(interval) -__version__ = '0.6.5' +__version__ = '0.6.6'