Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanjo Conti committed Sep 8, 2015
1 parent 2939228 commit 32288ee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions v7/import_twitpic/import_twitpic.py
Expand Up @@ -26,20 +26,19 @@

from __future__ import unicode_literals, print_function
import os
import locale
import datetime
import re

from nikola.plugin_categories import Command
from nikola import utils
from nikola.utils import req_missing
from nikola.plugins.basic_import import ImportMixin

LOGGER = utils.get_logger('import_twitpic', utils.STDERR_HANDLER)

twitter_username = re.compile(r'@([A-Za-z0-9_]+)')
twitter_hashtag = re.compile(r'#([A-Za-z0-9_]+)')


class CommandImportTwitpic(Command, ImportMixin):
"""Import from Twitpic."""

Expand Down Expand Up @@ -82,7 +81,6 @@ def _execute(self, options, args):
self.site_tags = {utils.slugify(t): t for t in self.site.posts_per_tag}
self.import_pics(chunks)


def import_pics(self, chunks):
for c in chunks:
head_and_text = c.split('\n')
Expand All @@ -98,7 +96,7 @@ def import_item(self, pic, date, text):
post_date = datetime.datetime.strptime(date, "%m/%d/%Y")
title = "Twitpic: %s" % post_date.strftime("%d/%m/%Y")
slug = utils.slugify(title)
self.tags = ["Twitpic"] + self.extra_tags
self.tags = ["Twitpic"] + self.extra_tags
content = self.expand(text)
base, ext = pic.split('.')
content += """
Expand Down

0 comments on commit 32288ee

Please sign in to comment.