5 Commits
Author SHA1 Message Date
Boying Xu d74f5745b0 improve format scripts for working on windows environment 2026-01-06 01:37:06 +08:00
Christian Clauss facdd935af Fix an if statement that is always True
% `python3 -c "print((isinstance, str))"`
```
(<built-in function isinstance>, <class 'str'>)
```
% `python3 -c "print(bool((isinstance, str)))"`
```
True
```
% `ruff check ---select=E9,F63,F7`
```
Error: scripts/python_helpers.py:20:8: F634 If test is a tuple, which is always `True`
```
Current state: Always return `normalize(path)`
Proposed state: Return `normalize(path)` if `path` is a `str` otherwise raise an `Exception` which should probably be a `TypeError` instead of a generic `Exception`.
2025-01-09 09:53:15 +01:00
Elliana May 4cb3d7c6ba fix: format 2023-07-25 11:06:45 +08:00
SartorialOffense e881cf1166 Fixed directory separator bug
Issue on Windows with parquet_amalgamation.py throwing
'Could not find include file "parquet-amalgamation.hpp'
exception referenced in #2505. Added helper method in python_helpers to
ensure more consistency.
2021-11-06 09:35:56 -05:00
Mark Raasveldt 38c5cd488a Of course the "encoding" option is not present in python 2 2020-10-24 21:10:42 +02:00