Code beautifying (flake8)
authorMarek Marecki <triviuss@gmail.com>
Tue, 30 Apr 2013 17:58:03 +0000 (19:58 +0200)
committerMarek Marecki <triviuss@gmail.com>
Tue, 30 Apr 2013 17:58:03 +0000 (19:58 +0200)
diaspy/client.py
diaspy/models.py

index 041e495ab535da3be178a2b03b63b009f9d7af98..028017261cc4a4dd048831bc65b41a0370a64316 100644 (file)
@@ -1,4 +1,3 @@
-import re
 import json
 import diaspy.models
 import diaspy.connection
index 04d8ed33e1f0f7a2ee02ef6501dcfd17098bfa33..8bf71a93d3a3375017b5f76e920004c3f8a4da5e 100644 (file)
@@ -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))