Show More
@@ -148,13 +148,13 b' class command(_funcregistrarbase):' | |||
|
148 | 148 | recoverablewrite = "recoverable" |
|
149 | 149 | readonly = "readonly" |
|
150 | 150 | |
|
151 | possiblecmdtypes = {unrecoverablewrite, recoverablewrite, readonly} | |
|
152 | ||
|
151 | 153 | def _doregister(self, func, name, options=(), synopsis=None, |
|
152 | 154 | norepo=False, optionalrepo=False, inferrepo=False, |
|
153 | 155 | cmdtype=unrecoverablewrite): |
|
154 | 156 | |
|
155 | possiblecmdtypes = set([self.unrecoverablewrite, self.recoverablewrite, | |
|
156 | self.readonly]) | |
|
157 | if cmdtype not in possiblecmdtypes: | |
|
157 | if cmdtype not in self.possiblecmdtypes: | |
|
158 | 158 | raise error.ProgrammingError(_("unknown cmdtype value '%s' for " |
|
159 | 159 | "'%s' command") % (cmdtype, name)) |
|
160 | 160 | func.norepo = norepo |
General Comments 0
You need to be logged in to leave comments.
Login now