Skip to content

Commit 815d7b6

Browse files
committed
python stdlib: renamed TODO's to TODO: Truffle
1 parent 35f140b commit 815d7b6

File tree

8 files changed

+21
-20
lines changed

8 files changed

+21
-20
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ String cwd() {
251251
public abstract static class GetPidNode extends PythonBuiltinNode {
252252
@Specialization
253253
int getPid() {
254+
// TODO: this needs to be implemented properly at some point (consider managed execution as well)
254255
return getContext().hashCode();
255256
}
256257
}

graalpython/lib-python/3/logging/handlers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
2323
To use, simply 'import logging.handlers' and log away!
2424
"""
25-
# TODO: reenable me once socket is supported (GR-9140)
25+
# TODO: Truffle reenable me once socket is supported (GR-9140)
2626
# import logging, socket, os, pickle, struct, time, re
2727
import logging, os, pickle, struct, time, re
2828
from stat import ST_DEV, ST_INO, ST_MTIME
29-
# TODO: reenable me once queue and threading is supported (GR-9144)
29+
# TODO: Truffle reenable me once queue and threading is supported (GR-9144)
3030
# import queue
31-
# TODO: reenable me once threading is supported (GR-9144)
31+
# TODO: Truffle reenable me once threading is supported (GR-9144)
3232
# try:
3333
# import threading
3434
# except ImportError: #pragma: no cover

graalpython/lib-python/3/platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
__version__ = '1.0.8'
114114

115115
import collections
116-
# TODO: reenable me once subprocess is supported (GR-9141)
116+
# TODO: Truffle reenable me once subprocess is supported (GR-9141)
117117
# import sys, os, re, subprocess
118118
import sys, os, re
119119

graalpython/lib-python/3/sysconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def _generate_posix_vars():
428428

429429
def _init_posix(vars):
430430
"""Initialize the module as appropriate for POSIX systems."""
431-
# TODO: reneable me once we know what goes on in here (GR-9137)
431+
# TODO: Truffle reneable me once we know what goes on in here (GR-9137)
432432
# name = _get_sysconfigdata_name()
433433
# _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
434434
# build_time_vars = _temp.build_time_vars

graalpython/lib-python/3/test/support/__init__.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,32 @@
1313
import importlib
1414
import importlib.util
1515
import logging.handlers
16-
# TODO: reenable me once supported (GR-9138)
16+
# TODO: Truffle reenable me once supported (GR-9138)
1717
# import nntplib
1818
import os
1919
import platform
2020
import re
21-
# TODO: reenable me once supported (GR-9139)
21+
# TODO: Truffle reenable me once supported (GR-9139)
2222
# import shutil
23-
# TODO: reenable me once supported (GR-9140)
23+
# TODO: Truffle reenable me once supported (GR-9140)
2424
# import socket
2525
import stat
2626
import struct
27-
# TODO: reenable me once supported (GR-9141)
27+
# TODO: Truffle reenable me once supported (GR-9141)
2828
# import subprocess
2929
import sys
3030
import sysconfig
31-
# TODO: reenable me once supported (GR-9142)
31+
# TODO: Truffle reenable me once supported (GR-9142)
3232
# import tempfile
3333
import time
3434
import types
3535
import unittest
36-
# TODO: reenable me once supported (GR-9143)
36+
# TODO: Truffle reenable me once supported (GR-9143)
3737
# import urllib.error
3838
import warnings
3939

4040

41-
# TODO: reenable me once supported (GR-9144)
41+
# TODO: Truffle reenable me once supported (GR-9144)
4242
# try:
4343
# import _thread, threading
4444
# except ImportError:
@@ -47,36 +47,36 @@
4747
_thread = None
4848
threading = None
4949

50-
# TODO: reenable me once supported (GR-9145)
50+
# TODO: Truffle reenable me once supported (GR-9145)
5151
# try:
5252
# import multiprocessing.process
5353
# except ImportError:
5454
# multiprocessing = None
5555
multiprocessing = None
5656

57-
# TODO: reenable me once supported (GR-9146)
57+
# TODO: Truffle reenable me once supported (GR-9146)
5858
# try:
5959
# import zlib
6060
# except ImportError:
6161
# zlib = None
6262
zlib = None
6363

64-
# TODO: reenable me once supported (GR-9147)
64+
# TODO: Truffle reenable me once supported (GR-9147)
6565
# try:
6666
# import gzip
6767
# except ImportError:
6868
# gzip = None
6969
gzip = None
7070

7171

72-
# TODO: reenable me once supported (GR-9148)
72+
# TODO: Truffle reenable me once supported (GR-9148)
7373
# try:
7474
# import bz2
7575
# except ImportError:
7676
# bz2 = None
7777
bz2 = None
7878

79-
# TODO: reenable me once supported (GR-9149)
79+
# TODO: Truffle reenable me once supported (GR-9149)
8080
# try:
8181
# import lzma
8282
# except ImportError:

graalpython/lib-python/3/test/test_builtin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1842,7 +1842,7 @@ class B:
18421842

18431843

18441844
def load_tests(loader, tests, pattern):
1845-
# TODO: revertme once doctest is supported (once io can read text files) (GR-9151)
1845+
# TODO: Truffle revertme once doctest is supported (once io can read text files) (GR-9151)
18461846
# from doctest import DocTestSuite
18471847
# tests.addTest(DocTestSuite(builtins))
18481848
return tests

graalpython/lib-python/3/test/test_math.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ def test_fractions(self):
14111411

14121412

14131413
def test_main():
1414-
# TODO: revertme once doctest is supported (once io can read text files) (GR-9151)
1414+
# TODO: Truffle revertme once doctest is supported (once io can read text files) (GR-9151)
14151415
# from doctest import DocFileSuite
14161416
suite = unittest.TestSuite()
14171417
suite.addTest(unittest.makeSuite(MathTests))

graalpython/lib-python/3/unittest/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ def assertSequenceEqual(self, seq1, seq2, msg=None, seq_type=None):
999999
# standardMsg = self._truncateMessage(standardMsg, diffMsg)
10001000
# msg = self._formatMessage(msg, standardMsg)
10011001
# self.fail(msg)
1002-
# TODO: reneable me once pformat / difflib work (GR-9152) (GR-9153)
1002+
# TODO: Truffle reneable me once pformat / difflib work (GR-9152) (GR-9153)
10031003
self.fail(differing)
10041004

10051005
def _truncateMessage(self, message, diff):

0 commit comments

Comments
 (0)