summaryrefslogtreecommitdiff
path: root/jsonschema/benchmarks/issue232.py
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2020-06-07 12:18:10 -0400
committerJulian Berman <Julian@GrayVines.com>2020-06-07 12:18:10 -0400
commit1ff1561647d96de642c0c1c627177e69667bfba3 (patch)
tree31afc7dfc2d03b43096342564e4576755cd5bd68 /jsonschema/benchmarks/issue232.py
parent9cdc7a93e7c688226da90728f6e0429933c03f70 (diff)
downloadjsonschema-1ff1561647d96de642c0c1c627177e69667bfba3.tar.gz
FilePath -> pathlib
Diffstat (limited to 'jsonschema/benchmarks/issue232.py')
-rw-r--r--jsonschema/benchmarks/issue232.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/jsonschema/benchmarks/issue232.py b/jsonschema/benchmarks/issue232.py
index 65e3aed..b1b05b2 100644
--- a/jsonschema/benchmarks/issue232.py
+++ b/jsonschema/benchmarks/issue232.py
@@ -4,7 +4,8 @@ A performance benchmark using the example from issue #232.
See https://github.com/Julian/jsonschema/pull/232.
"""
-from twisted.python.filepath import FilePath
+from pathlib import Path
+
from pyperf import Runner
from pyrsistent import m
@@ -13,7 +14,7 @@ import jsonschema
issue232 = Version(
- path=FilePath(__file__).sibling("issue232"),
+ path=Path(__file__).parent / "issue232",
remotes=m(),
name="issue232",
)