Browse files

move the import of libmimms so it will be loaded only when needed

  • Loading branch information...
1 parent 96ca80e commit fe66d0baeb375b074b85595f7a68f8c0abe70ead @OriHoch committed Mar 16, 2012
View
3 src/knesset/video/management/commands/sub_commands/DownloadCommitteesVideos.py
@@ -5,13 +5,12 @@
from django.contrib.contenttypes.models import ContentType
from knesset.committees.models import Committee
from knesset.video.models import Video
-import knesset.video.utils.mms as utils_mms
from knesset.video.utils import get_videos_queryset
class DownloadCommitteesVideos(SubCommand):
def __init__(self,command,mms=None,mb_quota=None):
- if mms is None: mms=utils_mms
+ if mms is None: import knesset.video.utils.mms as mms
SubCommand.__init__(self,command)
self._verifyDataDir()
videos=self._getVideosToDownload()

0 comments on commit fe66d0b

Please sign in to comment.