Skip to content

Commit

Permalink
Merge pull request #33 from mokshaproject/feature/moksha-wsgi-twisted
Browse files Browse the repository at this point in the history
Make this twisted dep optional
  • Loading branch information
ralphbean committed Nov 4, 2015
2 parents 9928086 + 41d6145 commit c85a0e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moksha.wsgi/moksha/wsgi/widgets/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

import tw2.core as twc

from twisted.python.reflect import namedAny
from pygments import highlight
from pygments.lexers import PythonLexer
from pygments.formatters import HtmlFormatter
Expand All @@ -46,6 +45,7 @@ class SourceCodeWidget(twc.Widget):
hidden = True

def prepare(self):
from twisted.python.reflect import namedAny
super(SourceCodeWidget, self).prepare()
title = self.widget.__class__.__name__
if not self.source:
Expand Down

0 comments on commit c85a0e7

Please sign in to comment.