From 14433d85341cdad754468bfe8d924e0c8abf9dff Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 5 Apr 2020 10:33:23 +0100 Subject: [PATCH] flake8 format --- blocking.py | 3 --- blog.py | 53 ++++++++++++++++++++++++++++++++++--------------- static_analysis | 2 +- 3 files changed, 38 insertions(+), 20 deletions(-) diff --git a/blocking.py b/blocking.py index ad00a213a..dda4cacf9 100644 --- a/blocking.py +++ b/blocking.py @@ -12,9 +12,6 @@ from utils import locatePost from utils import evilIncarnate from utils import getDomainFromActor from utils import getNicknameFromActor -from session import postJson -from auth import createBasicAuthHeader -from webfinger import webfingerHandle def addGlobalBlock(baseDir: str, diff --git a/blog.py b/blog.py index 724e7d783..458076ce5 100644 --- a/blog.py +++ b/blog.py @@ -586,8 +586,11 @@ def htmlEditBlog(mediaInstance: bool, translate: {}, editBlogImageSection += ' ' editBlogImageSection += ' ' - editBlogImageSection += ' ' editBlogImageSection += ' ' placeholderMessage = translate['Write something'] + '...' @@ -599,34 +602,48 @@ def htmlEditBlog(mediaInstance: bool, translate: {}, dateAndLocation = '' dateAndLocation = '
' - dateAndLocation += '

' - dateAndLocation += '

' - dateAndLocation += '' + dateAndLocation += \ + '' dateAndLocation += '' dateAndLocation += '

' dateAndLocation += '
' dateAndLocation += '
' - dateAndLocation += '
' + dateAndLocation += \ + '
' dateAndLocation += '' dateAndLocation += '
' editBlogForm = htmlHeader(cssFilename, editBlogCSS) - editBlogForm += '
' - editBlogForm += ' ' - editBlogForm += ' ' + editBlogForm += \ + ' ' + editBlogForm += \ + ' ' editBlogForm += '