Commits

Marcin Kasperski  committed 94f9b7b

A few pep8 and pyflakes suggested corrections/reformattings.

  • Participants
  • Parent commits 3422f7b

Comments (0)

Files changed (7)

File sample/orgfile/rewrite.py

 org_file = OrgFile("sample.org")
 
 lab = org_file.find_or_create_folder("test-label")
-lab.add_feed( Feed("test feed", [], "/lame/url", None, None, None) )
+lab.add_feed(Feed("test feed", [], "/lame/url", None, None, None))
 
 org_file.save_to("sample-result.org")
       url='http://mekk.waw.pl/',
       package_dir={'':'src'},
       packages=find_packages('src', exclude=['ez_setup', 'examples', 'tests']),
-      namespace_packages=['mekk'],
+      namespace_packages = ['mekk'],
       test_suite = 'nose.collector',
       include_package_data = True,
       package_data = {
-        'mekk' : [
+        'mekk': [
             'README.txt',
             'LICENSE.txt',
             'doc/usage.txt',

File src/mekk/feeds/greader2org/settings.py

 # -*- coding: utf-8 -*-
 
-import os, sys
+import os
 import ConfigParser
 import keyring
 import getpass

File src/mekk/feeds/greader2org/update_from_postrank.py

 #!/usr/bin/python
 # -*- coding: utf-8 -*-
 
-from mekk.feeds.orgfile import Folder, Feed
 from collections import defaultdict
 from base_command import BaseCommand
 from helpers import true_categories

File src/mekk/feeds/greader2org/update_to_google.py

 #!/usr/bin/python
 # -*- coding: utf-8 -*-
 
-from mekk.feeds.orgfile import Folder, Feed
 from collections import defaultdict
 import re
+import sys
+import logging
+
 from base_command import BaseCommand
 from helpers import true_categories
-import logging
 
 log = logging.getLogger("greader2org")
 
             all_google_feeds[ key_url ] = dict(
                 title = title, categories = cat, feed_url = feed_url )
         
-        import sys
         changes_count = 0
         
         for folder in self.org.folders:
                         print "Disabled feed, unsubscribing: %s" % feed.title
                         rc.unsubscribe_feed(old_url)
                         changes_count += 1
-                        if changes_count >= CHANGES_LIMIT: sys.exit(0)
+                        if changes_count >= CHANGES_LIMIT:
+                            sys.exit(0)
                     continue
         
                 new_url = feed.feed

File src/mekk/feeds/orgfile/org_parse.py

 """
 
 import pyparsing as pyp
-import re
 
 class OrgParser(object):
     """

File tests/test_org_parsefile.py

         self.failUnlessEqual(pt.feed, url)
 
     def test3(self):
-        url = "http://paweltkaczyk.midea.pl/feed/";
+        url = "http://paweltkaczyk.midea.pl/feed/"
         pt = self.org.find_feed(url)
         self.failUnlessEqual(pt.feed, url)
         self.failUnless('disabled' in pt.tags )