Browse Source

pylint throughout (excluding tests) - return from __init__()

The MMGen Project 1 year ago
parent
commit
57724e8bdc
6 changed files with 8 additions and 8 deletions
  1. 2 2
      mmgen/filename.py
  2. 2 2
      mmgen/mn_entry.py
  3. 1 1
      mmgen/obj.py
  4. 1 1
      mmgen/proto/eth/daemon.py
  5. 1 1
      mmgen/tw/bal.py
  6. 1 1
      mmgen/wallet/enc.py

+ 2 - 2
mmgen/filename.py

@@ -64,7 +64,7 @@ class File:
 class FileList(list):
 class FileList(list):
 
 
 	def __init__(self,fns,write=False):
 	def __init__(self,fns,write=False):
-		return list.__init__(
+		list.__init__(
 			self,
 			self,
 			[File(fn,write) for fn in fns] )
 			[File(fn,write) for fn in fns] )
 
 
@@ -105,7 +105,7 @@ class MMGenFile(File):
 class MMGenFileList(FileList):
 class MMGenFileList(FileList):
 
 
 	def __init__(self,fns,base_class,proto=None,write=False):
 	def __init__(self,fns,base_class,proto=None,write=False):
-		return list.__init__(
+		list.__init__(
 			self,
 			self,
 			[MMGenFile( fn, base_class=base_class, proto=proto, write=write ) for fn in fns] )
 			[MMGenFile( fn, base_class=base_class, proto=proto, write=write ) for fn in fns] )
 
 

+ 2 - 2
mmgen/mn_entry.py

@@ -107,7 +107,7 @@ class MnEntryModeShort(MnEntryMode):
 	def __init__(self,mne):
 	def __init__(self,mne):
 		if mne.wl_id == 'bip39':
 		if mne.wl_id == 'bip39':
 			self.prompt_info += '  ' + self.prompt_info_bip39_add.strip()
 			self.prompt_info += '  ' + self.prompt_info_bip39_add.strip()
-		return super().__init__(mne)
+		super().__init__(mne)
 
 
 	@property
 	@property
 	def ss_len(self):
 	def ss_len(self):
@@ -150,7 +150,7 @@ class MnEntryModeFixed(MnEntryMode):
 	def __init__(self,mne):
 	def __init__(self,mne):
 		self.len_diff = mne.uniq_ss_len - mne.shortest_word
 		self.len_diff = mne.uniq_ss_len - mne.shortest_word
 		self.prompt_info += self.prompt_info_add[self.len_diff==1].lstrip()
 		self.prompt_info += self.prompt_info_add[self.len_diff==1].lstrip()
-		return super().__init__(mne)
+		super().__init__(mne)
 
 
 	@property
 	@property
 	def ss_len(self):
 	def ss_len(self):

+ 1 - 1
mmgen/obj.py

@@ -59,7 +59,7 @@ class IndexedDict(dict):
 		if args or kwargs:
 		if args or kwargs:
 			self.die('initializing values via constructor')
 			self.die('initializing values via constructor')
 		self.__keylist = []
 		self.__keylist = []
-		return dict.__init__(self,*args,**kwargs)
+		dict.__init__(self,*args,**kwargs)
 
 
 	def __setitem__(self,key,value):
 	def __setitem__(self,key,value):
 		if key in self:
 		if key in self:

+ 1 - 1
mmgen/proto/eth/daemon.py

@@ -37,7 +37,7 @@ class ethereum_daemon(CoinDaemon):
 
 
 		self.port_offset = daemon_idx_offset + getattr(self.network_port_offsets,self.network)
 		self.port_offset = daemon_idx_offset + getattr(self.network_port_offsets,self.network)
 
 
-		return super().__init__( *args, test_suite=test_suite, **kwargs )
+		super().__init__( *args, test_suite=test_suite, **kwargs )
 
 
 	def get_rpc_port(self):
 	def get_rpc_port(self):
 		return self.base_rpc_port + self.port_offset
 		return self.base_rpc_port + self.port_offset

+ 1 - 1
mmgen/tw/bal.py

@@ -41,7 +41,7 @@ class TwGetBalance(MMGenObject,metaclass=AsyncInit):
 					'ge_minconf': amt0,
 					'ge_minconf': amt0,
 					'spendable': amt0,
 					'spendable': amt0,
 				}
 				}
-				return dict.__init__(self,**data)
+				dict.__init__(self,**data)
 
 
 		self.minconf = NonNegativeInt(minconf)
 		self.minconf = NonNegativeInt(minconf)
 		self.balance_info = BalanceInfo
 		self.balance_info = BalanceInfo

+ 1 - 1
mmgen/wallet/enc.py

@@ -21,7 +21,7 @@ class wallet(wallet):
 	def __init__(self,*args,**kwargs):
 	def __init__(self,*args,**kwargs):
 		from mmgen.crypto import Crypto
 		from mmgen.crypto import Crypto
 		self.crypto = Crypto(self.cfg)
 		self.crypto = Crypto(self.cfg)
-		return super().__init__(*args,**kwargs)
+		super().__init__(*args,**kwargs)
 
 
 	def _decrypt_retry(self):
 	def _decrypt_retry(self):
 		while True:
 		while True: