Skip to content

Commit 56ea542

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

3 files changed

Lines changed: 7 additions & 12 deletions

File tree

.travis.yml

Lines 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

Lines 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

Lines 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)