@@ -223,8 +223,6 @@ def testItem(d: str, pc: whois.ParameterContext) -> Any:
223223
224224def testItem1 (
225225 d : str ,
226- * ,
227- printgetRawWhoisResult : bool = False ,
228226) -> None :
229227 global \
230228 IgnoreReturncode , \
@@ -378,7 +376,7 @@ def getAllCurrentTld() -> list[str]:
378376
379377def appendHintOrMeta (
380378 rr : list [str ],
381- allRegex : str | None ,
379+ # allRegex: str | None,
382380 tld : str ,
383381) -> None :
384382 global TestAllTld , TestRunOnly
@@ -393,7 +391,7 @@ def appendHintOrMeta(
393391
394392def appendHint (
395393 rr : list [str ],
396- allRegex : str | None ,
394+ # allRegex: str | None,
397395 tld : str ,
398396) -> None :
399397 global TestAllTld , TestRunOnly
@@ -405,17 +403,17 @@ def appendHint(
405403
406404
407405def makeMetaAllCurrentTld (
408- allHaving : str | None = None ,
406+ # allHaving: str | None = None,
409407 allRegex : str | None = None ,
410408) -> list [str ]:
411409 rr : list [str ] = []
412410 for tld in getAllCurrentTld ():
413411 if allRegex is None :
414- appendHintOrMeta (rr , allRegex , tld )
412+ appendHintOrMeta (rr , tld )
415413 continue
416414
417415 if re .search (allRegex , tld ):
418- appendHintOrMeta (rr , allRegex , tld )
416+ appendHintOrMeta (rr , tld )
419417
420418 return rr
421419
@@ -426,10 +424,10 @@ def makeTestAllCurrentTld(
426424 rr : list [str ] = []
427425 for tld in getAllCurrentTld ():
428426 if allRegex is None :
429- appendHint (rr , allRegex , tld )
427+ appendHint (rr , tld )
430428 continue
431429 if re .search (allRegex , tld ):
432- appendHint (rr , allRegex , tld )
430+ appendHint (rr , tld )
433431
434432 return rr
435433
@@ -583,7 +581,7 @@ def main() -> None: # noqa: C901,PLR0915
583581
584582 # TestAllTld: bool = False
585583
586- allHaving : str | None = None # from all supported tld only process the ones having this :: TODO ::
584+ # allHaving: str | None = None # from all supported tld only process the ones having this :: TODO ::
587585 allRegex : str | None = None # from all supported tld process only the ones matching this regex
588586
589587 directory : str | None = None
@@ -614,9 +612,9 @@ def main() -> None: # noqa: C901,PLR0915
614612 if opt in {"-a" , "--all" }:
615613 TestAllTld = True
616614
617- if opt in {"-H" , "--having" }:
618- TestAllTld = True
619- allHaving = str (arg )
615+ # if opt in {"-H", "--having"}:
616+ # TestAllTld = True
617+ # allHaving = str(arg)
620618
621619 if opt in {"-r" , "--reg" }:
622620 TestAllTld = True
@@ -709,7 +707,7 @@ def main() -> None: # noqa: C901,PLR0915
709707
710708 if TestAllTld :
711709 if TestRunOnly is False :
712- testDomains (makeMetaAllCurrentTld (allHaving , allRegex ))
710+ testDomains (makeMetaAllCurrentTld (allRegex ))
713711 else :
714712 testDomains (makeTestAllCurrentTld (allRegex ))
715713
0 commit comments