From 5f07e456cf425764bf57c3d3d8275f9f88bf291c Mon Sep 17 00:00:00 2001 From: Marek Marecki Date: Tue, 30 Apr 2013 19:58:03 +0200 Subject: [PATCH] Code beautifying (flake8) --- diaspy/client.py | 1 - diaspy/models.py | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/diaspy/client.py b/diaspy/client.py index 041e495..0280172 100644 --- a/diaspy/client.py +++ b/diaspy/client.py @@ -1,4 +1,3 @@ -import re import json import diaspy.models import diaspy.connection diff --git a/diaspy/models.py b/diaspy/models.py index 04d8ed3..8bf71a9 100644 --- a/diaspy/models.py +++ b/diaspy/models.py @@ -211,10 +211,10 @@ class Stream: data['status_message'] = {'text': text} if photos: data['photos'] = photos request = self._connection.post('status_messages', - data=json.dumps(data), - headers={'content-type': 'application/json', - 'accept': 'application/json', - 'x-csrf-token': self._connection.getToken()}) + data=json.dumps(data), + headers={'content-type': 'application/json', + 'accept': 'application/json', + 'x-csrf-token': self._connection.getToken()}) if request.status_code != 201: raise Exception('{0}: Post could not be posted.'.format( request.status_code)) -- 2.25.1