Fix checking for args
This commit is contained in:
		
							parent
							
								
									859259ddae
								
							
						
					
					
						commit
						9c19728d2b
					
				|  | @ -46,7 +46,7 @@ if hasattr(inspect, 'signature'): | |||
|         return str(inspect.signature(func)) | ||||
| else: | ||||
|     def _has_positional_arg(func): | ||||
|         return inspect.getargspec(func)[0] is not None | ||||
|         return bool(inspect.getargspec(func).args) | ||||
| 
 | ||||
|     def _format_args(func): | ||||
|         return inspect.formatargspec(*inspect.getargspec(func)) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue