10000 Stop support for EOL Python versions · dotlambda/fluent-logger-python@a920626 · GitHub
[go: up one dir, main page]

Skip to content

Commit a920626

Browse files
committed
Stop support for EOL Python versions
fixes fluent#108
1 parent 26ceba6 commit a920626

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ sudo: false
22
language: python
33
python:
44
- "2.7"
5-
- "3.2"
6-
- "3.3"
75
- "3.4"
86
- "3.5"
97
- "3.6"

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Python application.
2424
Requirements
2525
------------
2626

27-
- Python 2.6 or greater including 3.x
27+
- Python 2.7 or 3.4+
2828
- ``msgpack-python``
2929

3030
Installation

fluent/handler.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ def __init__(self, fmt=None, datefmt=None, style='%', fill_missing_fmt_key=False
9393
self.fill_missing_fmt_key = fill_missing_fmt_key
9494

9595
def format(self, record):
96-
# Only needed for python2.6
97-
if sys.version_info[0:2] <= (2, 6) and self.usesTime(): # pragma: no cover
98-
record.asctime = self.formatTime(record, self.datefmt)
99-
10096
# Compute attributes handled by parent class.
10197
super(FluentRecordFormatter, self).format(record)
10298
# Add ours
@@ -180,9 +176,9 @@ def _add_dic(data, dic):
180176

181177

182178
class FluentHandler(logging.Handler):
183-
'''
179+
"""
184180
Logging Handler for fluent.
185-
'''
181+
"""
186182

187183
def __init__(self,
188184
tag,

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
'Programming Language :: Python :: 2',
2828
'Programming Language :: Python :: 2.7',
2929
'Programming Language :: Python :: 3',
30-
'Programming Language :: Python :: 3.2',
31-
'Programming Language :: Python :: 3.3',
3230
'Programming Language :: Python :: 3.4',
3331
'Programming Language :: Python :: 3.5',
3432
'Programming Language :: Python :: 3.6',
@@ -39,6 +37,6 @@
3937
'Topic :: System :: Logging',
4038
'Intended Audience :: Developers',
4139
],
42-
python_requires=">=2.7,!=3.0,!=3.1,<3.8",
40+
python_requires=">=2.7,!=3.0,!=3.1,!=3.2,!=3.3,<3.8",
4341
test_suite='tests'
4442
)

0 commit comments

Comments
 (0)
0