FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

revert: remove wmcbrine's readme fork note and six short derivative docstrings by bdraco · Pull Request #1849 · python-zeroconf/python-zeroconf · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (5) .rst  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
12 changes: 0 additions & 12 deletions README.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@ This is fork of pyzeroconf, Multicast DNS Service Discovery for Python,
originally by Paul Scott-Murphy (https://github.com/paulsm/pyzeroconf),
modified by William McBrine (https://github.com/wmcbrine/pyzeroconf).

The original William McBrine's fork note::

This fork is used in all of my TiVo-related projects: HME for Python
(and therefore HME/VLC), Network Remote, Remote Proxy, and pyTivo.
Before this, I was tracking the changes for zeroconf.py in three
separate repos. I figured I should have an authoritative source.

Although I make changes based on my experience with TiVos, I expect that
they're generally applicable. This version also includes patches found
on the now-defunct (?) Launchpad repo of pyzeroconf, and elsewhere
around the net -- not always well-documented, sorry.

Compatible with:

* Bonjour
Expand Down
2 changes: 0 additions & 2 deletions src/zeroconf/_cache.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ def _remove_key(cache: _DNSRecordCacheType, key: _str, record: _DNSRecord) -> No


class DNSCache:
"""A cache of DNS entries."""

def __init__(self) -> None:
self.cache: _DNSRecordCacheType = {}
self._expire_heap: list[tuple[float, DNSRecord]] = []
Expand Down
2 changes: 0 additions & 2 deletions src/zeroconf/_dns.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,6 @@ def __repr__(self) -> str:


class DNSHinfo(DNSRecord):
"""A DNS host information record"""

__slots__ = ("_hash", "cpu", "os")

def __init__(
Expand Down
2 changes: 0 additions & 2 deletions src/zeroconf/_protocol/incoming.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ def __repr__(self) -> str:
)

def _read_header(self) -> None:
"""Reads header portion of packet"""
offset = self.offset
if offset + 12 > self._data_len:
raise IncomingDecodeError(
Expand All @@ -252,7 +251,6 @@ def _read_header(self) -> None:
self._num_additionals = buf[offset + 10] << 8 | buf[offset + 11]

def _read_questions(self) -> None:
"""Reads questions section of packet"""
buf = self._buf
questions = self._questions
for _ in range(self._num_questions):
Expand Down
1 change: 0 additions & 1 deletion src/zeroconf/_services/info.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ def __init__(

@property
def name(self) -> str:
"""The name of the service."""
return self._name

@name.setter
Expand Down
2 changes: 0 additions & 2 deletions src/zeroconf/_utils/ipaddress.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def is_unspecified(self) -> bool:

@property
def is_loopback(self) -> bool:
"""Return True if this is a loop back."""
return self._is_loopback


Expand Down Expand Up @@ -103,7 +102,6 @@ def is_unspecified(self) -> bool:

@property
def is_loopback(self) -> bool:
"""Return True if this is a loop back."""
return self._is_loopback


Expand Down
Loading

Back | FazBrowse Home | New Git URL