Skip to content

Commit d2e5f0a

Browse files
committed
fix: add compatibility with older python versions for clock::now
PEP 515 (Underscores in Numeric Literals) is supported only in Python 3.6+.
1 parent 0a60675 commit d2e5f0a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Fix bench tests missing test_file var
6+
- Fix compatibility with older python versions for clock::now
67

78
## [0.25.0](https://github.com/TypedDevs/bashunit/compare/0.23.0...0.24.0) - 2025-10-05
89

src/clock.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function clock::now() {
7676
python)
7777
python - <<'EOF'
7878
import time, sys
79-
sys.stdout.write(str(int(time.time() * 1_000_000_000)))
79+
sys.stdout.write(str(int(time.time() * 1000000000)))
8080
EOF
8181
;;
8282
node)

0 commit comments

Comments
 (0)