1. Cat's Eye Technologies
  2. toolshelf

Commits

Cat's Eye Technologies  committed 112e1a0

pep8 and pyflakes fixes.

  • Participants
  • Parent commits 696ce5d
  • Branches default

Comments (0)

Files changed (2)

File catalog/catseye.catalog

View file
 catseye/PL-GOTO.NET
 catseye/Robin
 catseye/Sally
+catseye/SMITH
 catseye/Strelnokoff
 catseye/Super-Wumpus-Land
-catseye/Unlikely
 # errr... no, the world isn't ready for this yet:
 # catseye/toolshelf
+catseye/Unlikely
+catseye/Version
 catseye/yoob
 catseye/yucca
 catseye/ZOWIE

File toolshelf.py

View file
     def get_hints(self, source):
         try:
             hints = self.config.get('hints', source.name)
-        except configparser.NoOptionError as e:
+        except configparser.NoOptionError:
             return None
         return hints
 
 
 class Source(object):
     def __init__(self, url=None, host=None, user=None, project=None,
-                       type=None, hints=''):
+                 type=None, hints=''):
         self.url = url
         self.host = host
         self.user = user
                        type='git', hints=hints)
             ]
 
-        match = re.match(r'^https?:\/\/(.*?)/.*?\/?([^/]*?)\.(zip|tgz|tar\.gz)$', name)
+        match = re.match(r'^https?:\/\/(.*?)/.*?\/?([^/]*?)'
+                         r'\.(zip|tgz|tar\.gz)$', name)
         if match:
             host = match.group(1)
             project = match.group(2)
                 # TODO: better hint parsing
                 try:
                     (name, value) = hint.split('=')
-                except ValueError as e:
+                except ValueError:
                     continue
                 if name == 'x':
                     verboten = os.path.join(self.dir, value)
 
         traverse(self.dir)
 
+
 ### Subcommands
 
+
 def dock_cmd(result, args):
     problems = []
     sources = Source.from_specs('external', args, problems)
             note("* Removing from your PATH all toolshelf directories")
             path.remove_components_by_prefix(TOOLSHELF)
         else:
-            note("* Removing from your PATH all directories that start with one of the following...")
+            note("* Removing from your PATH all directories that "
+                 "start with one of the following...")
             for source in sources:
                 note("  " + source.dir)
                 path.remove_components_by_prefix(source.dir)