Skip to content

Commit 32c3092

Browse files
alexmalyshevfacebook-github-bot
authored andcommitted
Remove unneeded usage of cinderx.init() in fbcode/cinderx
Summary: This is now executed when running `import cinderx`. Reviewed By: DinoV Differential Revision: D81336543 fbshipit-source-id: 414675fb91f21d7e08d3d6083ed40d729fe45607
1 parent a693cc0 commit 32c3092

12 files changed

Lines changed: 4 additions & 34 deletions

cinderx/PythonBin/sitecustomize.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# Copyright (c) Meta Platforms, Inc. and affiliates.
22

33
import cinderx
4-
5-
cinderx.init()

cinderx/PythonLib/cinderx/compileall.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,11 @@
1919
import py_compile
2020
import struct
2121
import sys
22-
from typing import Generator, Pattern, Type
23-
24-
import cinderx
25-
26-
# pyre-ignore[16]: Module `cinderx` has no attribute `init`.
27-
cinderx.init()
28-
2922
from functools import partial
3023
from pathlib import Path
24+
from typing import Generator, Pattern, Type
3125

26+
import cinderx
3227
from cinderx.compiler.pysourceloader import PySourceFileLoader
3328
from cinderx.compiler.strict.loader import strict_compile as strict_compile_fn
3429

cinderx/PythonLib/init_cinderx.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,5 @@
1414
# pyre-ignore[21]: The cinderx module is an optional dependency here, its
1515
# existence is confirmed in the if statement above.
1616
import cinderx
17-
18-
cinderx.init()
1917
except Exception as e:
2018
raise RuntimeError("Failed to initialize CinderX module") from e

cinderx/PythonLib/test_cinderx/test_immortalize.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
import unittest
55

66
import cinderx
7-
8-
cinderx.init()
9-
107
from cinderx.test_support import run_in_subprocess
118

129

cinderx/PythonLib/test_cinderx/test_jit_async_generators.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
from typing import Any, AsyncGenerator, Awaitable, Iterator, List
99

1010
import cinderx
11-
12-
cinderx.init()
13-
1411
import cinderx.test_support as cinder_support
1512

1613

cinderx/PythonLib/test_cinderx/test_jit_attr_cache.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
from textwrap import dedent
99

1010
import cinderx
11-
12-
cinderx.init()
13-
1411
import cinderx.jit
1512
import cinderx.test_support as cinder_support
1613

cinderx/PythonLib/test_cinderx/test_jit_coroutines.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
import unittest
1111

1212
import cinderx
13-
14-
cinderx.init()
1513
import cinderx.test_support as cinder_support
1614

1715
from cinderx.test_support import compiles_after_one_call, skip_unless_jit

cinderx/PythonLib/test_cinderx/test_jit_specialization.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@
55
import dis
66
import sys
77
import unittest
8-
9-
import cinderx
10-
11-
cinderx.init()
12-
138
from types import ModuleType
149
from typing import Callable, TypeVar
1510

11+
import cinderx
1612
import cinderx.jit
1713

1814

cinderx/PythonLib/test_cinderx/test_jit_type_annotations.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
from typing import Any, Generator
77

88
import cinderx
9-
10-
cinderx.init()
119
import cinderx.jit
1210

1311

cinderx/PythonLib/test_cinderx/test_jitlist.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
from unittest import skipIf
1616

1717
import cinderx
18-
19-
cinderx.init()
20-
2118
import cinderx.jit
2219

2320
from cinderx.test_support import CINDERX_PATH, ENCODING, skip_unless_jit

0 commit comments

Comments
 (0)