Commit 5677b143 by stv

Fix PEP8: W391 blank line at end of file

parent fb9f324f
...@@ -387,4 +387,3 @@ def create_other_user(_step, name, has_extra_perms, role_name): ...@@ -387,4 +387,3 @@ def create_other_user(_step, name, has_extra_perms, role_name):
@step('I log out') @step('I log out')
def log_out(_step): def log_out(_step):
world.visit('logout') world.visit('logout')
...@@ -10,4 +10,3 @@ class Command(BaseCommand): ...@@ -10,4 +10,3 @@ class Command(BaseCommand):
raise CommandError("restore_asset_from_trashcan requires one argument: <location>") raise CommandError("restore_asset_from_trashcan requires one argument: <location>")
restore_asset_from_trashcan(args[0]) restore_asset_from_trashcan(args[0])
...@@ -204,4 +204,3 @@ def primitive_insert(course, num, tab_type, name): ...@@ -204,4 +204,3 @@ def primitive_insert(course, num, tab_type, name):
tabs = course.tabs tabs = course.tabs
tabs.insert(num, new_tab) tabs.insert(num, new_tab)
modulestore().update_item(course, ModuleStoreEnum.UserID.primitive_command) modulestore().update_item(course, ModuleStoreEnum.UserID.primitive_command)
...@@ -17,4 +17,3 @@ startup.run() ...@@ -17,4 +17,3 @@ startup.run()
# as well as any WSGI server configured to use this file. # as well as any WSGI server configured to use this file.
from django.core.wsgi import get_wsgi_application from django.core.wsgi import get_wsgi_application
application = get_wsgi_application() application = get_wsgi_application()
...@@ -83,4 +83,3 @@ def _check_caller_authority(caller, role): ...@@ -83,4 +83,3 @@ def _check_caller_authority(caller, role):
elif isinstance(role, CourseRole): # instructors can change the roles w/in their course elif isinstance(role, CourseRole): # instructors can change the roles w/in their course
if not has_access(caller, CourseInstructorRole(role.course_key)): if not has_access(caller, CourseInstructorRole(role.course_key)):
raise PermissionDenied raise PermissionDenied
...@@ -65,4 +65,3 @@ class Command(BaseCommand): ...@@ -65,4 +65,3 @@ class Command(BaseCommand):
)) ))
except IOError: except IOError:
raise CommandError("Error writing to file: %s" % output_filename) raise CommandError("Error writing to file: %s" % output_filename)
# Create your models here. # Create your models here.
...@@ -39,4 +39,3 @@ class MakoModuleDescriptor(XModuleDescriptor): ...@@ -39,4 +39,3 @@ class MakoModuleDescriptor(XModuleDescriptor):
def get_html(self): def get_html(self):
return self.system.render_template( return self.system.render_template(
self.mako_template, self.get_context()) self.mako_template, self.get_context())
...@@ -65,4 +65,3 @@ class TabsEditingDescriptorTestCase(unittest.TestCase): ...@@ -65,4 +65,3 @@ class TabsEditingDescriptorTestCase(unittest.TestCase):
""""test get_context""" """"test get_context"""
rendered_context = self.descriptor.get_context() rendered_context = self.descriptor.get_context()
self.assertListEqual(rendered_context['tabs'], self.tabs) self.assertListEqual(rendered_context['tabs'], self.tabs)
...@@ -46,4 +46,3 @@ class WordCloudModuleTest(LogicTest): ...@@ -46,4 +46,3 @@ class WordCloudModuleTest(LogicTest):
self.assertEqual( self.assertEqual(
100.0, 100.0,
sum(i['percent'] for i in response['top_words'])) sum(i['percent'] for i in response['top_words']))
...@@ -73,4 +73,3 @@ def check_firefox_version(): ...@@ -73,4 +73,3 @@ def check_firefox_version():
'\t$ firefox --version\n' '\t$ firefox --version\n'
'\t{version}'.format(version=expected_firefox_ver) '\t{version}'.format(version=expected_firefox_ver)
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment