| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -198,7 +198,7 @@ def get(self, entry: DNSEntry) -> DNSRecord | None: | |||
| 198 | 198 | return None | |
| 199 | 199 | ||
| 200 | 200 | def get_all_by_details(self, name: str, type_: _int, class_: _int) -> list[DNSRecord]: | |
| 201 | - """Gets all matching entries by details.""" | ||
| 201 | + """Return every cached record carrying this name, type and class.""" | ||
| 202 | 202 | key = name.lower() | |
| 203 | 203 | records = self.cache.get(key) | |
| 204 | 204 | if records is None: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,7 +76,6 @@ def __init__(self, name: str, type_: int, class_: int) -> None: | |||
| 76 | 76 | self._fast_init_entry(name, type_, class_) | |
| 77 | 77 | ||
| 78 | 78 | def __eq__(self, other: Any) -> bool: | |
| 79 | - """Equal when key, type and class match.""" | ||
| 80 | 79 | return isinstance(other, DNSEntry) and self._dns_entry_matches(other) | |
| 81 | 80 | ||
| 82 | 81 | @property | |
@@ -133,7 +132,6 @@ def __init__(self, name: str, type_: int, class_: int) -> None: | |||
| 133 | 132 | self._fast_init(name, type_, class_) | |
| 134 | 133 | ||
| 135 | 134 | def __eq__(self, other: Any) -> bool: | |
| 136 | - """Equal when the entry fields match a question.""" | ||
| 137 | 135 | return isinstance(other, DNSQuestion) and self._dns_entry_matches(other) | |
| 138 | 136 | ||
| 139 | 137 | def __hash__(self) -> int: | |
@@ -271,7 +269,6 @@ def __init__( | |||
| 271 | 269 | self._fast_init(name, type_, class_, ttl, address, scope_id, created or current_time_millis()) | |
| 272 | 270 | ||
| 273 | 271 | def __eq__(self, other: Any) -> bool: | |
| 274 | - """Equal when address and the entry fields match.""" | ||
| 275 | 272 | return isinstance(other, DNSAddress) and self._eq(other) | |
| 276 | 273 | ||
| 277 | 274 | def __hash__(self) -> int: | |
@@ -333,7 +330,6 @@ def __init__( | |||
| 333 | 330 | self._fast_init(name, type_, class_, ttl, cpu, os, created or current_time_millis()) | |
| 334 | 331 | ||
| 335 | 332 | def __eq__(self, other: Any) -> bool: | |
| 336 | - """Equal when cpu, os and the entry fields match.""" | ||
| 337 | 333 | return isinstance(other, DNSHinfo) and self._eq(other) | |
| 338 | 334 | ||
| 339 | 335 | def __hash__(self) -> int: | |
@@ -378,7 +374,6 @@ def __init__( | |||
| 378 | 374 | self._fast_init(name, type_, class_, ttl, next_name, rdtypes, created or current_time_millis()) | |
| 379 | 375 | ||
| 380 | 376 | def __eq__(self, other: Any) -> bool: | |
| 381 | - """Equal when next_name, rdtypes and the entry fields match.""" | ||
| 382 | 377 | return isinstance(other, DNSNsec) and self._eq(other) | |
| 383 | 378 | ||
| 384 | 379 | def __hash__(self) -> int: | |
@@ -448,7 +443,6 @@ def __init__( | |||
| 448 | 443 | self._fast_init(name, type_, class_, ttl, alias, created or current_time_millis()) | |
| 449 | 444 | ||
| 450 | 445 | def __eq__(self, other: Any) -> bool: | |
| 451 | - """Equal when alias and the entry fields match.""" | ||
| 452 | 446 | return isinstance(other, DNSPointer) and self._eq(other) | |
| 453 | 447 | ||
| 454 | 448 | def __hash__(self) -> int: | |
@@ -505,7 +499,6 @@ def __init__( | |||
| 505 | 499 | ) | |
| 506 | 500 | ||
| 507 | 501 | def __eq__(self, other: Any) -> bool: | |
| 508 | - """Equal when priority, weight, port, server and the entry fields match.""" | ||
| 509 | 502 | return isinstance(other, DNSService) and self._eq(other) | |
| 510 | 503 | ||
| 511 | 504 | def __hash__(self) -> int: | |
@@ -568,7 +561,6 @@ def __init__( | |||
| 568 | 561 | self._fast_init(name, type_, class_, ttl, text, created or current_time_millis()) | |
| 569 | 562 | ||
| 570 | 563 | def __eq__(self, other: Any) -> bool: | |
| 571 | - """Equal when text and the entry fields match.""" | ||
| 572 | 564 | return isinstance(other, DNSText) and self._eq(other) | |
| 573 | 565 | ||
| 574 | 566 | def __hash__(self) -> int: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments