Procházet zdrojové kódy

Remove unused exception

Guénaël Muller před 6 roky
rodič
revize
2d3ffef001

+ 2 - 4
tracim/tracim/lib/email_body_parser.py Zobrazit soubor

@@ -6,6 +6,7 @@ from bs4 import NavigableString
6 6
 
7 7
 # BodyParts and Body Parts Objects #
8 8
 
9
+
9 10
 class BodyMailPartType(object):
10 11
     Signature = 'sign'
11 12
     Main = 'main'
@@ -98,12 +99,9 @@ class BodyMailParts(object):
98 99
             s_mail += elem.text
99 100
         return str(s_mail)
100 101
 
101
-
102
-class SignatureIndexError(Exception):
103
-    pass
104
-
105 102
 # Elements Checkers #
106 103
 
104
+
107 105
 class ProprietaryHTMLAttrValues(object):
108 106
     """
109 107
     This are all Proprietary (mail client specific) html attr value we need to

+ 0 - 1
tracim/tracim/tests/library/test_email_body_parser.py Zobrazit soubor

@@ -3,7 +3,6 @@ from tracim.lib.email_body_parser import HtmlMailSignatureChecker
3 3
 from tracim.lib.email_body_parser import BodyMailParts
4 4
 from tracim.lib.email_body_parser import BodyMailPart
5 5
 from tracim.lib.email_body_parser import BodyMailPartType
6
-from tracim.lib.email_body_parser import SignatureIndexError
7 6
 from tracim.lib.email_body_parser import ParsedHTMLMail
8 7
 from tracim.tests import TestStandard
9 8
 from bs4 import BeautifulSoup,Tag