Skip to content

Commit e7419c6

Browse files
committed
remove import hack
1 parent b12bd49 commit e7419c6

File tree

1 file changed

+1
-8
lines changed
  • ycsb-mongodb/bin

1 file changed

+1
-8
lines changed

ycsb-mongodb/bin/ycsb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ import os
2323
import shlex
2424
import sys
2525
import subprocess
26-
27-
try:
28-
mod = __import__('argparse')
29-
import argparse
30-
except ImportError:
31-
print('[ERROR] argparse not found. Try installing it via "pip".', file=sys.stderr)
32-
exit(1)
26+
import argparse
3327

3428
BASE_URL = "https://github.com/brianfrankcooper/YCSB/tree/master/"
3529
COMMANDS = {
@@ -51,7 +45,6 @@ COMMANDS = {
5145
}
5246

5347
DATABASES = {
54-
5548
"mongodb" : "site.ycsb.db.MongoDbClient",
5649
"mongodb-async": "site.ycsb.db.AsyncMongoDbClient",
5750
}

0 commit comments

Comments
 (0)