@@ -349,19 +349,19 @@ def substringAfter(self, string: STRING, match: STRING) -> STRING:
349
349
self .logError (message , e )
350
350
return None
351
351
352
- def replace (self , input : STRING , pattern : STRING , replacement : STRING , flags : STRING = "" ) -> STRING :
352
+ def replace (self , input_ : STRING , pattern : STRING , replacement : STRING , flags : STRING = "" ) -> STRING :
353
353
try :
354
- return self .stringLib .replace (input , pattern , replacement , flags )
354
+ return self .stringLib .replace (input_ , pattern , replacement , flags )
355
355
except Exception as e :
356
- message : STRING = "replace({}, {}, {}, {})" .format (input , pattern , replacement , flags )
356
+ message : STRING = "replace({}, {}, {}, {})" .format (input_ , pattern , replacement , flags )
357
357
self .logError (message , e )
358
358
return None
359
359
360
- def matches (self , input : STRING , pattern : STRING , flags : STRING = "" ) -> BOOLEAN :
360
+ def matches (self , input_ : STRING , pattern : STRING , flags : STRING = "" ) -> BOOLEAN :
361
361
try :
362
- return self .stringLib .matches (input , pattern , flags )
362
+ return self .stringLib .matches (input_ , pattern , flags )
363
363
except Exception as e :
364
- message : STRING = "matches({}, {}, {})" .format (input , pattern , flags )
364
+ message : STRING = "matches({}, {}, {})" .format (input_ , pattern , flags )
365
365
self .logError (message , e )
366
366
return None
367
367
@@ -626,27 +626,27 @@ def monthOfYear(self, date: DATE) -> STRING:
626
626
# List functions
627
627
#
628
628
629
- def listContains (self , list : LIST , element : Any ) -> BOOLEAN :
629
+ def listContains (self , list_ : LIST , element : Any ) -> BOOLEAN :
630
630
try :
631
- return self .listLib .listContains (list , element )
631
+ return self .listLib .listContains (list_ , element )
632
632
except Exception as e :
633
- message : STRING = "listContains({}, {})" .format (list , element )
633
+ message : STRING = "listContains({}, {})" .format (list_ , element )
634
634
self .logError (message , e )
635
635
return None
636
636
637
- def append (self , list : LIST , * items ):
637
+ def append (self , list_ : LIST , * items ):
638
638
try :
639
- return self .listLib .append (list , * items )
639
+ return self .listLib .append (list_ , * items )
640
640
except Exception as e :
641
- message : STRING = "append({}, {})" .format (list , * items )
641
+ message : STRING = "append({}, {})" .format (list_ , * items )
642
642
self .logError (message , e )
643
643
return None
644
644
645
- def count (self , list : LIST ) -> DECIMAL :
645
+ def count (self , list_ : LIST ) -> DECIMAL :
646
646
try :
647
- return self .numberLib .count (list )
647
+ return self .numberLib .count (list_ )
648
648
except Exception as e :
649
- message = "count({})" .format (list )
649
+ message = "count({})" .format (list_ )
650
650
self .logError (message , e )
651
651
return None
652
652
@@ -674,11 +674,11 @@ def sum(self, *args) -> Optional[comparable]:
674
674
self .logError (message , e )
675
675
return None
676
676
677
- def sublist (self , list : LIST , startPosition : DECIMAL , length : DECIMAL = None ) -> LIST :
677
+ def sublist (self , list_ : LIST , startPosition : DECIMAL , length : DECIMAL = None ) -> LIST :
678
678
try :
679
- return self .listLib .sublist (list , self .intValue (startPosition ), self .intValue (length ))
679
+ return self .listLib .sublist (list_ , self .intValue (startPosition ), self .intValue (length ))
680
680
except Exception as e :
681
- message : STRING = "sublist({}, {}, {})" .format (list , startPosition , length )
681
+ message : STRING = "sublist({}, {}, {})" .format (list_ , startPosition , length )
682
682
self .logError (message , e )
683
683
return None
684
684
@@ -690,34 +690,34 @@ def concatenate(self, *lists) -> LIST:
690
690
self .logError (message , e )
691
691
return None
692
692
693
- def insertBefore (self , list : LIST , position : DECIMAL , newItem : Any ) -> LIST :
693
+ def insertBefore (self , list_ : LIST , position : DECIMAL , newItem : Any ) -> LIST :
694
694
try :
695
- return self .listLib .insertBefore (list , self .intValue (position ), newItem )
695
+ return self .listLib .insertBefore (list_ , self .intValue (position ), newItem )
696
696
except Exception as e :
697
- message : STRING = "insertBefore({}, {}, {})" .format (list , position , newItem )
697
+ message : STRING = "insertBefore({}, {}, {})" .format (list_ , position , newItem )
698
698
self .logError (message , e )
699
699
return None
700
700
701
- def remove (self , list : LIST , position : Any ):
701
+ def remove (self , list_ : LIST , position : Any ):
702
702
try :
703
- return self .listLib .remove (list , self .intValue (position ))
703
+ return self .listLib .remove (list_ , self .intValue (position ))
704
704
except Exception as e :
705
- message : STRING = "remove({})" .format (list )
705
+ message : STRING = "remove({})" .format (list_ )
706
706
self .logError (message , e )
707
707
return None
708
708
709
- def reverse (self , list : LIST ) -> LIST :
709
+ def reverse (self , list_ : LIST ) -> LIST :
710
710
try :
711
- return self .listLib .reverse (list )
711
+ return self .listLib .reverse (list_ )
712
712
except Exception as e :
713
- message : STRING = "reverse({})" .format (list )
713
+ message : STRING = "reverse({})" .format (list_ )
714
714
self .logError (message , e )
715
715
return None
716
716
717
- def indexOf (self , list : LIST , match : Any ) -> LIST :
717
+ def indexOf (self , list_ : LIST , match : Any ) -> LIST :
718
718
result = []
719
- if list is not None :
720
- for i , o in enumerate (list ):
719
+ if list_ is not None :
720
+ for i , o in enumerate (list_ ):
721
721
if o is None and match is None or o is not None and o == match :
722
722
result .append (self .valueOf (i + 1 ))
723
723
return result
@@ -730,19 +730,19 @@ def union(self, *lists):
730
730
self .logError (message , e )
731
731
return None
732
732
733
- def distinctValues (self , list : LIST ) -> LIST :
733
+ def distinctValues (self , list_ : LIST ) -> LIST :
734
734
try :
735
- return self .listLib .distinctValues (list )
735
+ return self .listLib .distinctValues (list_ )
736
736
except Exception as e :
737
- message : STRING = "distinctValues({})" .format (list )
737
+ message : STRING = "distinctValues({})" .format (list_ )
738
738
self .logError (message , e )
739
739
return None
740
740
741
- def flatten (self , list : LIST ) -> LIST :
741
+ def flatten (self , list_ : LIST ) -> LIST :
742
742
try :
743
- return self .listLib .flatten (list )
743
+ return self .listLib .flatten (list_ )
744
744
except Exception as e :
745
- message : STRING = "flatten({})" .format (list )
745
+ message : STRING = "flatten({})" .format (list_ )
746
746
self .logError (message , e )
747
747
return None
748
748
@@ -778,18 +778,18 @@ def mode(self, *args) -> LIST:
778
778
self .logError (message , e )
779
779
return None
780
780
781
- def collect (self , result : LIST , list : LIST ) -> None :
781
+ def collect (self , result : LIST , list_ : LIST ) -> None :
782
782
try :
783
- self .listLib .collect (result , list )
783
+ self .listLib .collect (result , list_ )
784
784
except Exception as e :
785
- message : STRING = "collect({}, {})" .format (result , list )
785
+ message : STRING = "collect({}, {})" .format (result , list_ )
786
786
self .logError (message , e )
787
787
788
- def sort (self , list : LIST , precedes : LambdaExpression ) -> LIST :
788
+ def sort (self , list_ : LIST , precedes : LambdaExpression ) -> LIST :
789
789
try :
790
- return self .listLib .sort (list , precedes )
790
+ return self .listLib .sort (list_ , precedes )
791
791
except Exception as e :
792
- message : STRING = "sort({})" .format (list )
792
+ message : STRING = "sort({})" .format (list_ )
793
793
self .logError (message , e )
794
794
return None
795
795
0 commit comments