[arch-commits] Commit in python-dephell-discover/trunk (1 file)

Eli Schwartz eschwartz at archlinux.org
Wed Nov 13 14:21:08 UTC 2019


    Date: Wednesday, November 13, 2019 @ 14:21:08
  Author: eschwartz
Revision: 527154

python-dephell-discover: remove unneeded patch, because communitypkg cannot?

Deleted:
  python-dephell-discover/trunk/dephell_discover-python-3.8.patch

-----------------------------------+
 dephell_discover-python-3.8.patch |   22 ----------------------
 1 file changed, 22 deletions(-)

Deleted: dephell_discover-python-3.8.patch
===================================================================
--- dephell_discover-python-3.8.patch	2019-11-13 14:18:30 UTC (rev 527153)
+++ dephell_discover-python-3.8.patch	2019-11-13 14:21:08 UTC (rev 527154)
@@ -1,22 +0,0 @@
-diff --git a/dephell_discover/_line.py b/dephell_discover/_line.py
-index 6739c34..31c82e4 100644
---- a/dephell_discover/_line.py
-+++ b/dephell_discover/_line.py
-@@ -53,7 +53,7 @@ class Line:
-         value = tree.body[0].value  # type: ignore
- 
-         # get string
--        if type(value) is ast.Str:
-+        if type(value) is ast.Constant:
-             return cls(
-                 target=target.id,
-                 value=value.s,
-@@ -65,7 +65,7 @@ class Line:
-         # get list
-         if type(value) is ast.List or type(value) is ast.Tuple:
-             for element in value.elts:
--                if type(element) is not ast.Str:
-+                if type(element) is not ast.Constant:
-                     return None
-             return cls(
-                 target=target.id,



More information about the arch-commits mailing list