Do not print sensitive data
authorCryptoManiac <balthazar@yandex.ru>
Wed, 23 Mar 2016 00:41:23 +0000 (03:41 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Wed, 23 Mar 2016 00:41:23 +0000 (03:41 +0300)
contrib/seeds/getseeds/getseeds.py

index 7a208e8..a0874f0 100755 (executable)
@@ -57,14 +57,12 @@ contents = {}
 
 for line in conf.splitlines(True):
     if line.startswith(b'#'):
-        line = line[:line.index('#')]
+        line = line[:line.index(b'#')]
     if not line.__contains__(b'='):
         continue
     k, v = line.split(b'=', 1)
     contents[k.strip()] = v.strip()
 
-print(contents)
-
 if b'rpcpassword' not in contents.keys():
     print('''RPC password is not found in the %s file.''' % (conf_path))
     sys.exit()