Skip to content

Commit

Permalink
Make method static.
Browse files Browse the repository at this point in the history
modified:   src/ZPublisher/HTTPResponse.py
  • Loading branch information
jugmac00 committed May 1, 2019
1 parent c6c1228 commit a7c915e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ZPublisher/HTTPResponse.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,8 @@ def _unauthorized(self):
if realm:
self.setHeader('WWW-Authenticate', 'basic realm="%s"' % realm, 1)

def _html(self, title, body):
@staticmethod
def _html(title, body):
return ("<html>\n"
"<head>\n<title>%s</title>\n</head>\n"
"<body>\n%s\n</body>\n"
Expand Down

0 comments on commit a7c915e

Please sign in to comment.