equal
deleted
inserted
replaced
1297 |
1297 |
1298 def _match(self, id): |
1298 def _match(self, id): |
1299 if isinstance(id, int): |
1299 if isinstance(id, int): |
1300 # rev |
1300 # rev |
1301 return self.node(id) |
1301 return self.node(id) |
1302 if len(id) == 20: |
1302 if len(id) == self.nodeconstants.nodelen: |
1303 # possibly a binary node |
1303 # possibly a binary node |
1304 # odds of a binary node being all hex in ASCII are 1 in 10**25 |
1304 # odds of a binary node being all hex in ASCII are 1 in 10**25 |
1305 try: |
1305 try: |
1306 node = id |
1306 node = id |
1307 self.rev(node) # quick search the index |
1307 self.rev(node) # quick search the index |