Commits

Wraithan committed 38e8b41

Get the visual-indent errors as well.

Comments (0)

Files changed (3)

 
 def setup_environ(dunder_file=None, project_path=None, relative_project_path=None, settings_path=None):
     assert not (dunder_file and project_path), ("You must not specify both "
-        "__file__ and project_path")
+                                                "__file__ and project_path")
 
     if dunder_file is not None:
         file_path = os.path.abspath(os.path.dirname(dunder_file))

ahgl/tournaments/management/commands/scrape_ahgl.py

     help = 'Parses ahgl site and loads the data'
     option_list = BaseCommand.option_list + (
         make_option('--whole-team',
-            action='store_true',
-            dest='whole_team',
-            default=False,
-            help='Game involves the whole team playing in a game at once'),
+                    action='store_true',
+                    dest='whole_team',
+                    default=False,
+                    help='Game involves the whole team playing in a game at once'),
         make_option('--team',
-            action='store_true',
-            dest='team',
-            default=False,
-            help='Scrape team and player profile information'),
+                    action='store_true',
+                    dest='team',
+                    default=False,
+                    help='Scrape team and player profile information'),
         make_option('--match',
-            action='store_true',
-            dest='match',
-            default=False,
-            help='Scrape match information'),
+                    action='store_true',
+                    dest='match',
+                    default=False,
+                    help='Scrape match information'),
         make_option('--admin',
-            action='store_true',
-            dest='admin',
-            default=False,
-            help='Scrape data from admin page'),
+                    action='store_true',
+                    dest='admin',
+                    default=False,
+                    help='Scrape data from admin page'),
     )
 
     first_week_match = datetime.date(2012, 1, 6)

ahgl/utils/middleware.py

                 # Try removing the trailing slash.
                 try:
                     r = Redirect.objects.get(site__id__exact=settings.SITE_ID,
-                        old_path=path[:path.rfind('/')] + path[path.rfind('/') + 1:])
+                                             old_path=path[:path.rfind('/')] + path[path.rfind('/') + 1:])
                 except Redirect.DoesNotExist:
                     pass
             if r is not None: