Skip to content

Commit 8cc6a00

Browse files
committed
Revert "time: refactor naming of gmtime and localtime"
This reverts commit 87a380efcd4eeea23c875cd9b7a331d15b240053.
1 parent e2da905 commit 8cc6a00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/TimeModuleBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private static Object[] getTimeStruct(double seconds, boolean local) {
7979
}
8080

8181
// time.gmtime([seconds])
82-
@Builtin(name = "gmtime", fixedNumOfArguments = 1)
82+
@Builtin(name = "__truffle_gmtime_tuple__", fixedNumOfArguments = 1)
8383
@GenerateNodeFactory
8484
public abstract static class PythonGMTimeNode extends PythonBuiltinNode {
8585
@Specialization
@@ -89,7 +89,7 @@ public PTuple gmtime(double seconds) {
8989
}
9090

9191
// time.localtime([seconds])
92-
@Builtin(name = "localtime", fixedNumOfArguments = 1)
92+
@Builtin(name = "__truffle_localtime_tuple__", fixedNumOfArguments = 1)
9393
@GenerateNodeFactory
9494
public abstract static class PythonLocalTimeNode extends PythonBuiltinNode {
9595
@Specialization

0 commit comments

Comments
 (0)