Skip to content

Commit 6b83cd0

Browse files
committed
Add back 3.6 support
1 parent aa17937 commit 6b83cd0

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
language: python
22
matrix:
33
include:
4+
- python: 3.6
45
- python: 3.7
5-
dist: xenial
66
- python: 3.8
7-
dist: xenial
87
env: RUN_LINTER=1
98
- python: nightly
10-
dist: xenial
119
allow_failures:
1210
- python: nightly
1311

HISTORY.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ History
66
2.0.0
77
++++++++++++++++++
88

9-
* IMPORTANT: Python 3.7 or greater is required. If you are using an older
9+
* IMPORTANT: Python 3.6 or greater is required. If you are using an older
1010
version, please use a 1.x.x release.
1111
* Type hints have been added to the pure Python implementation.
1212

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ invalid IP address or an IPv6 address in an IPv4 database.
9393
Requirements
9494
------------
9595

96-
This code requires Python 3.7+. Older versions are not supported. The C
96+
This code requires Python 3.6+. Older versions are not supported. The C
9797
extension requires CPython.
9898

9999
Versioning

maxminddb/reader.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
This module contains the pure Python database reader and related classes.
66
77
"""
8-
from __future__ import annotations
9-
108
try:
119
import mmap
1210
except ImportError:
@@ -109,7 +107,7 @@ def __init__(
109107
)
110108
self.closed = False
111109

112-
def metadata(self) -> Metadata:
110+
def metadata(self) -> "Metadata":
113111
"""Return the metadata associated with the MaxMind DB file"""
114112
return self._metadata
115113

@@ -234,7 +232,7 @@ def close(self) -> None:
234232
def __exit__(self, *args) -> None:
235233
self.close()
236234

237-
def __enter__(self) -> Reader:
235+
def __enter__(self) -> "Reader":
238236
if self.closed:
239237
raise ValueError("Attempt to reopen a closed MaxMind DB")
240238
return self

0 commit comments

Comments
 (0)