Commits

Tetsuya Morimoto committed e03e62a

fixed pep8 errors

  • Participants
  • Parent commits 4702727

Comments (0)

Files changed (2)

File tests/conftest.py

 def pytest_addoption(parser):
     group = parser.getgroup("general")
     group.addoption('--envscope',
-        action="store", dest="envscope", default="module",
-        type="choice", choices=["module", "function"],
-        help=("set environment scope, default: module."))
+                    action="store", dest="envscope", default="module",
+                    type="choice", choices=["module", "function"],
+                    help=("set environment scope, default: module."))
 
 def make_trac_environment_with_plugin():
     env = EnvironmentStub(

File ticketref/model.py

 from utils import cnv_list2text, cnv_sorted_refs, cnv_text2list
 
 CUSTOM_FIELDS = [
-    {"name": "ticketref",
-     "type": "textarea",
-     "properties": [
-        ("ticketref.label", "Relationships"),
-        ("ticketref.cols", "68"),
-        ("ticketref.rows", "1")
-     ],
+    {
+        "name": "ticketref",
+        "type": "textarea",
+        "properties": [
+                        ("ticketref.label", "Relationships"),
+                        ("ticketref.cols", "68"),
+                        ("ticketref.rows", "1"),
+        ],
     },
 ]
 TICKETREF = CUSTOM_FIELDS[0]["name"]
                     new_text = cnv_list2text(target_refs)
                     c.execute(UPDATE_TICKETREF, (new_text, ref_id))
                     c.execute(INSERT_TICKETCHG, (ref_id, self.time_stamp,
-                                author, row[0].strip(), new_text))
+                              author, row[0].strip(), new_text))
                     c.execute(UPDATE_TICKET, (self.time_stamp, ref_id))
             else:
                 c.execute(INSERT_TICKETREF, (ref_id, self.ticket.id))