]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Remove leftover unused code from [365].
authorChristopher Lenz <cmlenz@gmail.com>
Mon, 16 Jun 2008 10:14:38 +0000 (10:14 +0000)
committerChristopher Lenz <cmlenz@gmail.com>
Mon, 16 Jun 2008 10:14:38 +0000 (10:14 +0000)
babel/messages/extract.py
babel/messages/tests/extract.py

index 1a1862e1ad3ec4737400a294e1973de0e28b48a9..f43be8864ee17ef0285b98a6d5a2e71fdca2ca84 100644 (file)
@@ -253,12 +253,6 @@ def extract(method, fileobj, keywords=DEFAULT_KEYWORDS, comment_tags=(),
         else:
             module, attrname = method.split(':', 1)
         func = getattr(__import__(module, {}, {}, [attrname]), attrname)
-    elif '.' in method:
-        parts = method.split('.')
-        clsname
-    if ':' in method:
-        module, clsname = method.split(':', 1)
-        func = getattr(__import__(module, {}, {}, [clsname]), clsname)
     else:
         try:
             from pkg_resources import working_set
index 5d0a1cd70202034e70e57689f93edb51a2151004..5d985184e685d69eaea5624e4cca73b73e6c31b8 100644 (file)
@@ -321,6 +321,7 @@ _('Babatschi')""")
         self.assertEqual([u'This is a multiline comment with',
                           u'a prefix too'], messages[1][2])
 
+
 class ExtractJavaScriptTestCase(unittest.TestCase):
 
     def test_simple_extract(self):
@@ -411,6 +412,7 @@ _('no comment here')
         self.assertEqual(u'no comment here', messages[2][2])
         self.assertEqual([], messages[2][3])
 
+
 class ExtractTestCase(unittest.TestCase):
 
     def test_invalid_filter(self):
@@ -468,6 +470,7 @@ msg = _('')
         finally:
             sys.stderr = stderr
 
+
 def suite():
     suite = unittest.TestSuite()
     suite.addTest(doctest.DocTestSuite(extract))