Skip to content

Commit 9e670be

Browse files
[add] Enabled utf-8 decoded chars (#257)
1 parent 2be6a2f commit 9e670be

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <[email protected]>","Redis Performance Group <[email protected]>"]
66
readme = "README.md"

redisbench_admin/run/redis_benchmark/redis_benchmark.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ def prepare_redis_benchmark_command(
9191
if "size" in k:
9292
command_arr.extend(["-d", "{}".format(k["size"])])
9393
if "x" in k:
94-
with open("{}/{}".format(current_workdir, k["x"]), "r") as fd:
94+
with open(
95+
"{}/{}".format(current_workdir, k["x"]), "r", encoding="utf-8"
96+
) as fd:
9597
minus_x = fd.read()
9698
# if we have the command keywork then it needs to be at the end of args
9799
if "command" in k:

0 commit comments

Comments
 (0)