From: Marek Marecki Date: Tue, 30 Apr 2013 17:58:03 +0000 (+0200) Subject: Code beautifying (flake8) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5f07e456cf425764bf57c3d3d8275f9f88bf291c;p=diaspy.git Code beautifying (flake8) --- 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))