| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,18 +24,6 @@ This is fork of pyzeroconf, Multicast DNS Service Discovery for Python, | |||
| 24 | 24 | originally by Paul Scott-Murphy (https://github.com/paulsm/pyzeroconf), | |
| 25 | 25 | modified by William McBrine (https://github.com/wmcbrine/pyzeroconf). | |
| 26 | 26 | ||
| 27 | - The original William McBrine's fork note:: | ||
| 28 | - | ||
| 29 | - This fork is used in all of my TiVo-related projects: HME for Python | ||
| 30 | - (and therefore HME/VLC), Network Remote, Remote Proxy, and pyTivo. | ||
| 31 | - Before this, I was tracking the changes for zeroconf.py in three | ||
| 32 | - separate repos. I figured I should have an authoritative source. | ||
| 33 | - | ||
| 34 | - Although I make changes based on my experience with TiVos, I expect that | ||
| 35 | - they're generally applicable. This version also includes patches found | ||
| 36 | - on the now-defunct (?) Launchpad repo of pyzeroconf, and elsewhere | ||
| 37 | - around the net -- not always well-documented, sorry. | ||
| 38 | - | ||
| 39 | 27 | Compatible with: | |
| 40 | 28 | ||
| 41 | 29 | * Bonjour | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -66,8 +66,6 @@ def _remove_key(cache: _DNSRecordCacheType, key: _str, record: _DNSRecord) -> No | |||
| 66 | 66 | ||
| 67 | 67 | ||
| 68 | 68 | class DNSCache: | |
| 69 | - """A cache of DNS entries.""" | ||
| 70 | - | ||
| 71 | 69 | def __init__(self) -> None: | |
| 72 | 70 | self.cache: _DNSRecordCacheType = {} | |
| 73 | 71 | self._expire_heap: list[tuple[float, DNSRecord]] = [] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -296,8 +296,6 @@ def __repr__(self) -> str: | |||
| 296 | 296 | ||
| 297 | 297 | ||
| 298 | 298 | class DNSHinfo(DNSRecord): | |
| 299 | - """A DNS host information record""" | ||
| 300 | - | ||
| 301 | 299 | __slots__ = ("_hash", "cpu", "os") | |
| 302 | 300 | ||
| 303 | 301 | def __init__( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -235,7 +235,6 @@ def __repr__(self) -> str: | |||
| 235 | 235 | ) | |
| 236 | 236 | ||
| 237 | 237 | def _read_header(self) -> None: | |
| 238 | - """Reads header portion of packet""" | ||
| 239 | 238 | offset = self.offset | |
| 240 | 239 | if offset + 12 > self._data_len: | |
| 241 | 240 | raise IncomingDecodeError( | |
@@ -252,7 +251,6 @@ def _read_header(self) -> None: | |||
| 252 | 251 | self._num_additionals = buf[offset + 10] << 8 | buf[offset + 11] | |
| 253 | 252 | ||
| 254 | 253 | def _read_questions(self) -> None: | |
| 255 | - """Reads questions section of packet""" | ||
| 256 | 254 | buf = self._buf | |
| 257 | 255 | questions = self._questions | |
| 258 | 256 | for _ in range(self._num_questions): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -252,7 +252,6 @@ def __init__( | |||
| 252 | 252 | ||
| 253 | 253 | @property | |
| 254 | 254 | def name(self) -> str: | |
| 255 | - """The name of the service.""" | ||
| 256 | 255 | return self._name | |
| 257 | 256 | ||
| 258 | 257 | @name.setter | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -66,7 +66,6 @@ def is_unspecified(self) -> bool: | |||
| 66 | 66 | ||
| 67 | 67 | @property | |
| 68 | 68 | def is_loopback(self) -> bool: | |
| 69 | - """Return True if this is a loop back.""" | ||
| 70 | 69 | return self._is_loopback | |
| 71 | 70 | ||
| 72 | 71 | ||
@@ -103,7 +102,6 @@ def is_unspecified(self) -> bool: | |||
| 103 | 102 | ||
| 104 | 103 | @property | |
| 105 | 104 | def is_loopback(self) -> bool: | |
| 106 | - """Return True if this is a loop back.""" | ||
| 107 | 105 | return self._is_loopback | |
| 108 | 106 | ||
| 109 | 107 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments