Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 56ea542

Browse filesBrowse files
committed
Drop Python 2.6 support, no excuse to use 2.6 these days
1 parent 376e011 commit 56ea542
Copy full SHA for 56ea542

File tree

Expand file treeCollapse file tree

3 files changed

+7
-12
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+7
-12
lines changed

‎.travis.yml

Copy file name to clipboardExpand all lines: .travis.yml
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: python
22
python:
3-
- "2.6"
43
- "2.7"
54
- "3.3"
65
- "3.4"

‎README.rst

Copy file name to clipboardExpand all lines: README.rst
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Compared to some other Zeroconf/Bonjour/Avahi Python packages, python-zeroconf:
4343
Python compatibility
4444
--------------------
4545

46-
* CPython 2.6, 2.7, 3.3+
46+
* CPython 2.7, 3.3+
4747
* PyPy 2.2+ (possibly 1.9-2.1 as well)
4848
* PyPy3 2.4+
4949

@@ -122,6 +122,11 @@ See examples directory for more.
122122
Changelog
123123
=========
124124

125+
0.18.0 (not released yet)
126+
-------------------------
127+
128+
* Dropped Python 2.6 support
129+
125130
0.17.7
126131
------
127132

‎zeroconf.py

Copy file name to clipboardExpand all lines: zeroconf.py
+1-10Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@
4545
__license__ = 'LGPL'
4646

4747

48-
try:
49-
NullHandler = logging.NullHandler
50-
except AttributeError:
51-
# Python 2.6 fallback
52-
class NullHandler(logging.Handler):
53-
54-
def emit(self, record):
55-
pass
56-
5748
__all__ = [
5849
"__version__",
5950
"Zeroconf", "ServiceInfo", "ServiceBrowser",
@@ -62,7 +53,7 @@ def emit(self, record):
6253

6354

6455
log = logging.getLogger(__name__)
65-
log.addHandler(NullHandler())
56+
log.addHandler(logging.NullHandler())
6657

6758
if log.level == logging.NOTSET:
6859
log.setLevel(logging.WARN)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.