aboutsummaryrefslogtreecommitdiffstats
path: root/python-packages/order_utils/setup.py
diff options
context:
space:
mode:
authorF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-10-13 04:00:45 +0800
committerF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-10-13 04:00:45 +0800
commit55f9348d0add1cd3d314edf5ef2056ddf37c8c7b (patch)
tree9f3aa1e9a9e3976d14c0e03ab0ffbcbb5b34918a /python-packages/order_utils/setup.py
parent2afa38c927ab10f1d8eecbb7e81a7c70f4bda767 (diff)
downloaddexon-sol-tools-55f9348d0add1cd3d314edf5ef2056ddf37c8c7b.tar
dexon-sol-tools-55f9348d0add1cd3d314edf5ef2056ddf37c8c7b.tar.gz
dexon-sol-tools-55f9348d0add1cd3d314edf5ef2056ddf37c8c7b.tar.bz2
dexon-sol-tools-55f9348d0add1cd3d314edf5ef2056ddf37c8c7b.tar.lz
dexon-sol-tools-55f9348d0add1cd3d314edf5ef2056ddf37c8c7b.tar.xz
dexon-sol-tools-55f9348d0add1cd3d314edf5ef2056ddf37c8c7b.tar.zst
dexon-sol-tools-55f9348d0add1cd3d314edf5ef2056ddf37c8c7b.zip
fix: use python's extsplit, not manual splicing
Diffstat (limited to 'python-packages/order_utils/setup.py')
-rw-r--r--python-packages/order_utils/setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python-packages/order_utils/setup.py b/python-packages/order_utils/setup.py
index 4d5d69de1..ba11fb349 100644
--- a/python-packages/order_utils/setup.py
+++ b/python-packages/order_utils/setup.py
@@ -63,7 +63,8 @@ class CleanCommandExtension(clean):
# delete all .pyc files
for root, _, files in walk("."):
for file in files:
- if file[-4:] == ".pyc":
+ (_, extension) = path.splitext(file)
+ if extension == '.pyc':
remove(path.join(root, file))