[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] pep8 fixes



commit 0225d899fe6d652e2a21d180cc6cfd727a5fb1c0
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Wed Mar 25 11:47:00 2015 +0100

    pep8 fixes
---
 ooni/deck.py |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/ooni/deck.py b/ooni/deck.py
index 18354da..83a9a70 100644
--- a/ooni/deck.py
+++ b/ooni/deck.py
@@ -37,7 +37,8 @@ class InputFile(object):
             try:
                 self.verify()
             except AssertionError:
-                log.err("The input %s failed validation. Going to consider it not cached." % self.id)
+                log.err("The input %s failed validation."
+                        "Going to consider it not cached." % self.id)
                 return False
             return True
         return False
@@ -45,13 +46,13 @@ class InputFile(object):
     def save(self):
         with open(self.cached_descriptor, 'w+') as f:
             json.dump({
-                          'name': self.name,
-                          'id': self.id,
-                          'version': self.version,
-                          'author': self.author,
-                          'date': self.date,
-                          'description': self.description
-                      }, f)
+                'name': self.name,
+                'id': self.id,
+                'version': self.version,
+                'author': self.author,
+                'date': self.date,
+                'description': self.description
+            }, f)
 
     def load(self, descriptor):
         self.name = descriptor['name']
@@ -107,7 +108,8 @@ class Deck(InputFile):
         self.decksDirectory = os.path.abspath(decks_directory)
         self.deckHash = deck_hash
 
-        if deckFile: self.loadDeck(deckFile)
+        if deckFile:
+            self.loadDeck(deckFile)
 
     @property
     def cached_file(self):



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits