Skip to content

Commit dc74c44

Browse files
committed
Drop Python 3.4 support (EOL). Bump minimum requirement to Python 3.5.3
Closes #302
1 parent b42c658 commit dc74c44

File tree

8 files changed

+4
-2457
lines changed

8 files changed

+4
-2457
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ground up in Python and C. It enables you to easily create custom apps for both
5656

5757
### Requirements
5858

59-
- Python 3.4 or higher.
59+
- Python 3.5.3 or higher.
6060
- A [Telegram API key](https://docs.pyrogram.org/intro/setup#api-keys).
6161

6262
### Installing

docs/source/intro/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ We recommend using the latest versions of both Python 3 and pip.
99

1010
.. important::
1111

12-
Pyrogram supports **Python 3** only, starting from version 3.4. **PyPy** is supported too.
12+
Pyrogram supports **Python 3** only, starting from version 3.5.3. **PyPy** is supported too.
1313

1414
Install Pyrogram
1515
----------------

pyrogram/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,10 @@
1616
# You should have received a copy of the GNU Lesser General Public License
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

19-
import sys
20-
21-
if sys.version_info[:3] in [(3, 5, 0), (3, 5, 1), (3, 5, 2)]:
22-
from .vendor import typing
23-
24-
# Monkey patch the standard "typing" module because Python versions from 3.5.0 to 3.5.2 have a broken one.
25-
sys.modules["typing"] = typing
26-
2719
__version__ = "0.16.0.dev"
2820
__license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)"
2921
__copyright__ = "Copyright (C) 2017-2019 Dan <https://github.com/delivrance>"
3022

31-
from .errors import RPCError
3223
from .client import *
3324
from .client.handlers import *
3425
from .client.types import *

pyrogram/vendor/__init__.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

pyrogram/vendor/typing/__init__.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)