Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10c8e29

Browse files
committed
Fix formatting
1 parent 3173d28 commit 10c8e29

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

clr_loader/hostfxr.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ def __init__(self, runtime_config, dotnet_root=None):
1616
if not dotnet_root:
1717
dotnet_root = os.environ.get("DOTNET_ROOT", None)
1818

19-
if not dotnet_root and sys.platform == 'win32':
19+
if not dotnet_root and sys.platform == "win32":
2020
# On Windows, the host library is stored separately from dotnet.exe for x86
2121
if sys.maxsize > 2 ** 32:
2222
possible_root = os.path.join(os.environ.get("ProgramFiles"), "dotnet")
2323
else:
24-
possible_root = os.path.join(os.environ.get("ProgramFiles(x86)"), "dotnet")
24+
possible_root = os.path.join(
25+
os.environ.get("ProgramFiles(x86)"), "dotnet"
26+
)
2527

2628
if os.path.isdir(possible_root):
2729
dotnet_root = possible_root
@@ -41,7 +43,9 @@ def __init__(self, runtime_config, dotnet_root=None):
4143
if os.path.isabs(dotnet_tmp_path):
4244
dotnet_path = dotnet_tmp_path
4345
else:
44-
dotnet_path = os.path.abspath(os.path.join(os.path.dirname(dotnet_path), dotnet_tmp_path))
46+
dotnet_path = os.path.abspath(
47+
os.path.join(os.path.dirname(dotnet_path), dotnet_tmp_path)
48+
)
4549
except OSError:
4650
pass
4751

clr_loader/util/coreclr_errors.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ def get_coreclr_error(hresult):
5858
except ValueError:
5959
print("Failed to process numeric value:", numeric_value)
6060

61+
self.close()
62+
6163
# fmt: off
6264
# flake8: noqa
6365
# == Autogenerated from corerror.xml ==
@@ -1132,4 +1134,4 @@ def get_coreclr_error(hresult):
11321134
Comment[0x8013200b] = "During a GC initialization, the GCHeapAffinitizeRanges config couldn't be parsed due to its invalid format."
11331135
SymbolicName[0x8013200c] = 'CLR_E_CROSSGEN_NO_IBC_DATA_FOUND'
11341136
Message[0x8013200c] = 'Cannot compile using the PartialNgen flag because no IBC data was found.'
1135-
Comment[0x8013200c] = 'During crossgen compilation, the PartialNgen flag was set, but no IBC data was found in the resources section of the input image, and no IBC file was externally provided.'
1137+
Comment[0x8013200c] = 'During crossgen compilation, the PartialNgen flag was set, but no IBC data was found in the resources section of the input image, and no IBC file was externally provided.'

0 commit comments

Comments
 (0)