File: Remove-not-used-coroutine-import.patch

package info (click to toggle)
pydle 0.9.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 456 kB
  • sloc: python: 3,037; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 762 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Origin: backport, e6ccb16d74e4a1b6b8f16075f2ed466e1294d96f
From: Daniel Garcia Moreno <daniel.garcia@suse.com>
Date: Thu, 23 Feb 2023 19:04:58 +0100
Subject: Remove not used coroutine import

coroutine is removed from python since python 3.11, it's imported in the
__init__.py file but not used anywhere so that can be removed safely.
---
diff --git a/pydle/__init__.py b/pydle/__init__.py
index b92c8d3..734fcef 100644
--- a/pydle/__init__.py
+++ b/pydle/__init__.py
@@ -5,7 +5,7 @@ from .features.ircv3.cap import NEGOTIATING as CAPABILITY_NEGOTIATING, FAILED as
     NEGOTIATED as CAPABILITY_NEGOTIATED
 
 # noinspection PyUnresolvedReferences
-from asyncio import coroutine, Future
+from asyncio import Future
 
 __name__ = 'pydle'
 __version__ = '0.9.4rc1'