forked from pool/python-urlgrabber
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()
|