mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-17 13:31:29 +00:00
excuse: add hasreason function
This commit is contained in:
parent
a08b7ebc48
commit
a667250cef
@ -419,6 +419,9 @@ class Excuse(object):
|
|||||||
""""adding reason"""
|
""""adding reason"""
|
||||||
self.reason[reason] = 1
|
self.reason[reason] = 1
|
||||||
|
|
||||||
|
def hasreason(self, reason):
|
||||||
|
return reason in self.reason
|
||||||
|
|
||||||
def _text(self, excuses):
|
def _text(self, excuses):
|
||||||
"""Render the excuse in text"""
|
"""Render the excuse in text"""
|
||||||
self._render_dep_issues(excuses)
|
self._render_dep_issues(excuses)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user