Closed jaraco closed 8 years ago
The connection.whois() method should check to see whether the parameter it was passed was a string or a list and act accordingly.
With a string:
#!python >>> "WHOIS " + ",".join( "JoshTheEnder" ) 'WHOIS J,o,s,h,T,h,e,E,n,d,e,r'
With a list (which i assume is how it's supposed to be done but seems pointless for 1 user):
#!python >>> "WHOIS " + ",".join( ["JoshTheEnder"] ) 'WHOIS JoshTheEnder'
Suggestion: Making the function check the type of the argument and act accordingly between string and list objects
Good idea.
Original comment by: Jason R. Coombs
Use always_iterable on whois command. Fixes #46.
→ <<cset 14e64cfc83c2>>
The connection.whois() method should check to see whether the parameter it was passed was a string or a list and act accordingly.
With a string:
With a list (which i assume is how it's supposed to be done but seems pointless for 1 user):
Suggestion: Making the function check the type of the argument and act accordingly between string and list objects