##// END OF EJS Templates
typing: add some assertions that a variable isn't None...
Matt Harbison -
r50748:e63ab79b default
parent child Browse files
Show More
@@ -217,6 +217,8 b' def blackbox(ui, repo, *revs, **opts):'
217 return
217 return
218
218
219 limit = opts.get('limit')
219 limit = opts.get('limit')
220 assert limit is not None # help pytype
221
220 fp = repo.vfs(b'blackbox.log', b'r')
222 fp = repo.vfs(b'blackbox.log', b'r')
221 lines = fp.read().split(b'\n')
223 lines = fp.read().split(b'\n')
222
224
@@ -243,6 +243,7 b' class monotone_source(common.converter_s'
243 m = self.cert_re.match(e)
243 m = self.cert_re.match(e)
244 if m:
244 if m:
245 name, value = m.groups()
245 name, value = m.groups()
246 assert value is not None # help pytype
246 value = value.replace(br'\"', b'"')
247 value = value.replace(br'\"', b'"')
247 value = value.replace(br'\\', b'\\')
248 value = value.replace(br'\\', b'\\')
248 certs[name] = value
249 certs[name] = value
General Comments 0
You need to be logged in to leave comments. Login now