forked from pool/python-urlgrabber
- Avoid crashing when setting URLGRABBER_DEBUG=1 environment variable - Added: * avoid_crashing_when_urlgrabber_debug_enabled.patch OBS-URL: https://build.opensuse.org/request/show/992601 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urlgrabber?expand=0&rev=48
25 lines
855 B
Diff
25 lines
855 B
Diff
From 4c2c0c12e77803a85cbc7d69eaff04b29aab2934 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?=
|
|
<psuarezhernandez@suse.com>
|
|
Date: Thu, 17 Mar 2022 11:50:39 +0000
|
|
Subject: [PATCH] Convert dict_keys to list to not crash when delegate is
|
|
enabled
|
|
|
|
---
|
|
urlgrabber/grabber.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
Index: urlgrabber-4.1.0/urlgrabber/grabber.py
|
|
===================================================================
|
|
--- urlgrabber-4.1.0.orig/urlgrabber/grabber.py
|
|
+++ urlgrabber-4.1.0/urlgrabber/grabber.py
|
|
@@ -1091,7 +1091,7 @@ class URLGrabberOptions:
|
|
return self.format()
|
|
|
|
def format(self, indent=' '):
|
|
- keys = self.__dict__.keys()
|
|
+ keys = list(self.__dict__.keys())
|
|
if self.delegate is not None:
|
|
keys.remove('delegate')
|
|
keys.sort()
|