Skip to content

Commit 0f357ba

Browse files
committed
pylint: fix first reference to properties outside of __init__
pylint flags when new properties are created outside of init. Probably smart as it could be a mispelling of an existing property. Also init docstring refers to the _ok_message and _error_message props, but doesn't set them like the other props it references.
1 parent ef7b47b commit 0f357ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

roundup/cgi/client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,9 @@ def __init__(self, instance, request, env, form=None, translator=None):
477477
# flag to indicate that the HTTP headers have been sent
478478
self.headers_done = 0
479479

480+
# record of headers sent for debugging
481+
self.headers_sent = []
482+
480483
# additional headers to send with the request - must be registered
481484
# before the first write
482485
self.additional_headers = {}
@@ -495,6 +498,8 @@ def __init__(self, instance, request, env, form=None, translator=None):
495498
self.nodeid = None
496499
self.classname = None
497500
self.template = None
501+
self._ok_message = []
502+
self._error_message = []
498503

499504
def _gen_nonce(self):
500505
""" generate a unique nonce """

0 commit comments

Comments
 (0)