mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 16:28:01 -05:00
Clean up some imports.
This commit is contained in:
@@ -20,15 +20,14 @@
|
||||
# Inc. All Rights Reserved.
|
||||
###############################################################################
|
||||
|
||||
from reddit_base import MinimalController
|
||||
|
||||
from r2.lib.scraper import get_media_embed
|
||||
from r2.lib.pages import MediaEmbedBody
|
||||
from r2.lib.validator import *
|
||||
|
||||
from pylons import request
|
||||
from pylons import request, g
|
||||
from pylons.controllers.util import abort
|
||||
|
||||
from r2.controllers.reddit_base import MinimalController
|
||||
from r2.lib.pages import MediaEmbedBody
|
||||
from r2.lib.scraper import get_media_embed
|
||||
from r2.lib.validator import validate, VLink
|
||||
|
||||
|
||||
class MediaembedController(MinimalController):
|
||||
@validate(link = VLink('link'))
|
||||
|
||||
@@ -21,9 +21,7 @@
|
||||
###############################################################################
|
||||
|
||||
<%!
|
||||
from r2.lib.template_helpers import get_domain, static
|
||||
from r2.lib import tracking
|
||||
import random
|
||||
%>
|
||||
|
||||
<iframe id="${thing.frame_id}" frameborder="0" scrolling="no" name="${thing.frame_id}"
|
||||
|
||||
Reference in New Issue
Block a user