jomae  committed b2fc316

0.12.3dev: Added missing imports.

  • Participants
  • Parent commits eda1774
  • Branches 0.12-stable

Comments (0)

Files changed (4)

File trac/mimeview/

 from trac.util import get_pkginfo
 from trac.util.datefmt import http_date, localtz
 from trac.util.translation import _
-from trac.web import IRequestHandler
+from trac.web.api import IRequestHandler, HTTPNotFound
 from import add_notice, add_stylesheet
 from genshi import QName, Stream

File trac/util/

 import re
-from genshi import Markup, escape, unescape
+from genshi import Markup, HTML, escape, unescape
 from genshi.core import stripentities, striptags, START, END
 from genshi.builder import Element, ElementFactory, Fragment
 from genshi.filters.html import HTMLSanitizer
+from genshi.input import ParseError
 __all__ = ['escape', 'unescape', 'html', 'plaintext', 'find_element',
         if attr is not None and attr in frag.attrib:
             return frag
         if cls is not None and cls in frag.attrib.get('class', '').split():
-            return fragment
+            return frag
     if isinstance(frag, Fragment):
         for child in frag.children:
             elt = find_element(child, attr, cls)

File trac/versioncontrol/

 import os.path
 import time
-from trac.admin import AdminCommandError, IAdminCommandProvider
+from trac.admin import AdminCommandError, IAdminCommandProvider, get_dir_list
 from trac.config import ListOption, Option
 from trac.core import *
 from trac.resource import IResourceManager, Resource, ResourceNotFound

File tracopt/mimeview/

 from trac.mimeview.api import IHTMLPreviewRenderer, content_to_unicode
 from trac.util import NaivePopen
 from trac.util.html import Deuglifier
+from trac.util.translation import _
 __all__ = ['PHPRenderer']