Skip to content

Commit 91e6ce3

Browse files
authored
Removed unused code.
1 parent 092febd commit 91e6ce3

File tree

4 files changed

+28
-25
lines changed

4 files changed

+28
-25
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
3.2.1 2021-07-19
2+
* Removed unused code.
3+
14
3.2.0 2021-06-25
25
* Added provider field and exception handling for incorrect BIN database.
36

IP2Proxy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def inet_pton(t, addr):
5353
return out_addr_p.raw
5454
socket.inet_pton = inet_pton
5555

56-
_VERSION = '3.2.0'
56+
_VERSION = '3.2.1'
5757
_NO_IP = 'MISSING IP ADDRESS'
5858
_FIELD_NOT_SUPPORTED = 'NOT SUPPORTED'
5959
_INVALID_IP_ADDRESS = 'INVALID IP ADDRESS'
@@ -529,8 +529,8 @@ def _get_record(self, ip):
529529
low = 0
530530
ipv = self._parse_addr(ip)[0]
531531
ipnum = self._parse_addr(ip)[1]
532-
print (ipv)
533-
print (ipnum)
532+
# print (ipv)
533+
# print (ipnum)
534534
if (ipv == 0):
535535
rec = IP2ProxyRecord()
536536
rec.country_short = _INVALID_IP_ADDRESS

PKG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 1.0
22
Name: IP2Proxy
3-
Version: 3.2.0
3+
Version: 3.2.1
44
Summary: Python API for IP2Proxy database
55
Home-page: http://www.ip2location.com
66
Author: IP2Location

setup.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
import setuptools
22

33
with open("README.md", "r") as fh:
4-
long_description = fh.read()
4+
long_description = fh.read()
55

66
setuptools.setup(
7-
name="IP2Proxy",
8-
version="3.2.0",
9-
author="IP2Location",
10-
author_email="support@ip2location.com",
11-
description="Python API for IP2Proxy database. It can be used to query an IP address if it was being used as open proxy, web proxy, VPN anonymizer and TOR exits.",
12-
long_description=long_description,
13-
long_description_content_type="text/markdown",
14-
py_modules=['IP2Proxy'],
15-
url="https://github.com/ip2location/ip2proxy-python",
16-
packages=setuptools.find_packages(),
17-
tests_require=['pytest>=3.0.6'],
18-
classifiers=(
19-
"Development Status :: 5 - Production/Stable",
20-
"Intended Audience :: Developers",
21-
"Topic :: Software Development :: Libraries :: Python Modules",
22-
"Programming Language :: Python :: 2.7",
23-
"Programming Language :: Python :: 3",
24-
"License :: OSI Approved :: MIT License",
25-
"Operating System :: OS Independent",
26-
),
7+
name="IP2Proxy",
8+
version="3.2.1",
9+
author="IP2Location",
10+
author_email="support@ip2location.com",
11+
description="Python API for IP2Proxy database. It can be used to query an IP address if it was being used as open proxy, web proxy, VPN anonymizer and TOR exits.",
12+
long_description=long_description,
13+
long_description_content_type="text/markdown",
14+
py_modules=['IP2Proxy'],
15+
url="https://github.com/ip2location/ip2proxy-python",
16+
packages=setuptools.find_packages(),
17+
tests_require=['pytest>=3.0.6'],
18+
classifiers=(
19+
"Development Status :: 5 - Production/Stable",
20+
"Intended Audience :: Developers",
21+
"Topic :: Software Development :: Libraries :: Python Modules",
22+
"Programming Language :: Python :: 2.7",
23+
"Programming Language :: Python :: 3",
24+
"License :: OSI Approved :: MIT License",
25+
"Operating System :: OS Independent",
26+
),
2727
)

0 commit comments

Comments
 (0)