aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2023-01-16 12:27:52 +0000
committerDaniel P. Berrangé <berrange@redhat.com>2023-01-16 12:30:00 +0000
commit5fbc7b0d06228b3380f7d46b488081afe5158311 (patch)
treee68858358d5052504f7eebf03b5c4487e243fd0c /tools
parent0c3623cfd9ecbcfe60bb8584a0e4c10bd48a4378 (diff)
downloadkeycodemapdb-5fbc7b0d06228b3380f7d46b488081afe5158311.zip
keycodemapdb-5fbc7b0d06228b3380f7d46b488081afe5158311.tar.gz
keycodemapdb-5fbc7b0d06228b3380f7d46b488081afe5158311.tar.bz2
Revert "Add local argparse for compat with python 2.6"
This reverts commit 56ce5650d2c6ea216b4580df44b9a6dd3bc92c3b. Python 2 is end of life and if by some chance there is still unexpected usage of python 2, it is likely that it is is 2.7 which includes argparse. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/keymap-gen7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/keymap-gen b/tools/keymap-gen
index ac4b057..32407ac 100755
--- a/tools/keymap-gen
+++ b/tools/keymap-gen
@@ -13,12 +13,7 @@
from __future__ import print_function
import csv
-try:
- import argparse
-except:
- import os, sys
- sys.path.append(os.path.join(os.path.dirname(__file__), "../thirdparty"))
- import argparse
+import argparse
import hashlib
import time
import sys