summaryrefslogtreecommitdiff
blob: ef1a6fc894e906d562e5128f14302679b1bab797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From af041fe9945276db0716a5342609b48aa2ac4363 Mon Sep 17 00:00:00 2001
From: Justin Bronder <jsbronder@gmail.com>
Date: Wed, 21 Sep 2016 19:35:16 -0400
Subject: [PATCH 1/4] use system configobj and feedparser

---
 sabnzbd/config.py | 4 +++-
 sabnzbd/rss.py    | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/sabnzbd/config.py b/sabnzbd/config.py
index a59b265..36cc12c 100644
--- a/sabnzbd/config.py
+++ b/sabnzbd/config.py
@@ -24,10 +24,12 @@ import re
 import logging
 import threading
 import shutil
+
+import configobj
+
 import sabnzbd.misc
 from sabnzbd.constants import CONFIG_VERSION, NORMAL_PRIORITY, DEFAULT_PRIORITY, MAX_WIN_DFOLDER
 from sabnzbd.utils import listquote
-from sabnzbd.utils import configobj
 from sabnzbd.decorators import synchronized
 
 CONFIG_LOCK = threading.Lock()
diff --git a/sabnzbd/rss.py b/sabnzbd/rss.py
index fc29e26..a7cdee1 100644
--- a/sabnzbd/rss.py
+++ b/sabnzbd/rss.py
@@ -24,6 +24,8 @@ import logging
 import time
 import threading
 
+import feedparser
+
 import sabnzbd
 from sabnzbd.constants import RSS_FILE_NAME, DEFAULT_PRIORITY, NORMAL_PRIORITY, DUP_PRIORITY
 from sabnzbd.decorators import synchronized
@@ -34,7 +36,6 @@ from sabnzbd.misc import cat_convert, wildcard_to_re, cat_to_opts, \
 import sabnzbd.emailer as emailer
 from sabnzbd.encoding import unicoder, xml_name
 
-import sabnzbd.utils.feedparser as feedparser
 
 __RSS = None  # Global pointer to RSS-scanner instance
 
-- 
2.4.10