@@ -678,7 +678,7 @@ public final boolean isContextManager(@Exclusive @Cached HasInheritedAttributeNo
678
678
@ Exclusive @ Cached ("createBinaryProfile()" ) ConditionProfile profile ) {
679
679
return profile .profile (hasEnterNode .execute (this , __ENTER__ ) && hasExitNode .execute (this , __EXIT__ ));
680
680
}
681
-
681
+
682
682
private static final String DATETIME_MODULE_NAME = "datetime" ;
683
683
private static final String TIME_MODULE_NAME = "time" ;
684
684
private static final String DATE_TYPE = "date" ;
@@ -714,7 +714,7 @@ public LocalDate asDate(@Shared("getClassNode") @Cached GetLazyClassNode getClas
714
714
@ Shared ("readTypeNode" ) @ Cached ReadAttributeFromObjectNode readTypeNode ,
715
715
@ Shared ("isSubtypeNode" ) @ Cached IsSubtypeNode .IsSubtypeWithoutFrameNode isSubtypeNode ,
716
716
@ Shared ("castToIntNode" ) @ Cached CastToJavaIntNode castToIntNode ,
717
- @ CachedLibrary ("this" ) InteropLibrary lib ,
717
+ @ CachedLibrary ("this" ) InteropLibrary lib ,
718
718
@ Shared ("dateTimeModuleProfile" ) @ Cached ("createBinaryProfile()" ) ConditionProfile dateTimeModuleLoaded ,
719
719
@ Shared ("timeModuleProfile" ) @ Cached ("createBinaryProfile()" ) ConditionProfile timeModuleLoaded ) throws UnsupportedMessageException {
720
720
LazyPythonClass objType = getClassNode .execute (this );
@@ -751,7 +751,7 @@ public LocalDate asDate(@Shared("getClassNode") @Cached GetLazyClassNode getClas
751
751
@ ExportMessage
752
752
public boolean isTime (@ Shared ("getClassNode" ) @ Cached GetLazyClassNode getClassNode ,
753
753
@ Shared ("readTypeNode" ) @ Cached ReadAttributeFromObjectNode readTypeNode ,
754
- @ Shared ("isSubtypeNode" ) @ Cached IsSubtypeNode .IsSubtypeWithoutFrameNode isSubtype ,
754
+ @ Shared ("isSubtypeNode" ) @ Cached IsSubtypeNode .IsSubtypeWithoutFrameNode isSubtype ,
755
755
@ Shared ("dateTimeModuleProfile" ) @ Cached ("createBinaryProfile()" ) ConditionProfile dateTimeModuleLoaded ,
756
756
@ Shared ("timeModuleProfile" ) @ Cached ("createBinaryProfile()" ) ConditionProfile timeModuleLoaded ) {
757
757
LazyPythonClass objType = getClassNode .execute (this );
@@ -776,7 +776,7 @@ public LocalTime asTime(@Shared("getClassNode") @Cached GetLazyClassNode getClas
776
776
@ Shared ("readTypeNode" ) @ Cached ReadAttributeFromObjectNode readTypeNode ,
777
777
@ Shared ("isSubtypeNode" ) @ Cached IsSubtypeNode .IsSubtypeWithoutFrameNode isSubtypeNode ,
778
778
@ Shared ("castToIntNode" ) @ Cached CastToJavaIntNode castToIntNode ,
779
- @ CachedLibrary ("this" ) InteropLibrary lib ,
779
+ @ CachedLibrary ("this" ) InteropLibrary lib ,
780
780
@ Shared ("dateTimeModuleProfile" ) @ Cached ("createBinaryProfile()" ) ConditionProfile dateTimeModuleLoaded ,
781
781
@ Shared ("timeModuleProfile" ) @ Cached ("createBinaryProfile()" ) ConditionProfile timeModuleLoaded ) throws UnsupportedMessageException {
782
782
LazyPythonClass objType = getClassNode .execute (this );
@@ -815,7 +815,7 @@ public LocalTime asTime(@Shared("getClassNode") @Cached GetLazyClassNode getClas
815
815
public boolean isTimeZone (@ Shared ("getClassNode" ) @ Cached GetLazyClassNode getClassNode ,
816
816
@ Shared ("readTypeNode" ) @ Cached ReadAttributeFromObjectNode readTypeNode ,
817
817
@ Shared ("isSubtypeNode" ) @ Cached IsSubtypeNode .IsSubtypeWithoutFrameNode isSubtype ,
818
- @ CachedLibrary (limit = "2" ) InteropLibrary lib ,
818
+ @ CachedLibrary (limit = "2" ) InteropLibrary lib ,
819
819
@ Shared ("dateTimeModuleProfile" ) @ Cached ("createBinaryProfile()" ) ConditionProfile dateTimeModuleLoaded ,
820
820
@ Shared ("timeModuleProfile" ) @ Cached ("createBinaryProfile()" ) ConditionProfile timeModuleLoaded ) {
821
821
LazyPythonClass objType = getClassNode .execute (this );
@@ -869,7 +869,7 @@ public ZoneId asTimeZone(@Shared("getClassNode") @Cached GetLazyClassNode getCla
869
869
@ Shared ("readTypeNode" ) @ Cached ReadAttributeFromObjectNode readTypeNode ,
870
870
@ Shared ("isSubtypeNode" ) @ Cached IsSubtypeNode .IsSubtypeWithoutFrameNode isSubtypeNode ,
871
871
@ Shared ("castToIntNode" ) @ Cached CastToJavaIntNode castToIntNode ,
872
- @ CachedLibrary (limit = "3" ) InteropLibrary lib ,
872
+ @ CachedLibrary (limit = "3" ) InteropLibrary lib ,
873
873
@ Shared ("dateTimeModuleProfile" ) @ Cached ("createBinaryProfile()" ) ConditionProfile dateTimeModuleLoaded ,
874
874
@ Shared ("timeModuleProfile" ) @ Cached ("createBinaryProfile()" ) ConditionProfile timeModuleLoaded ) throws UnsupportedMessageException {
875
875
if (!lib .isTimeZone (this )) {
0 commit comments