aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/tools
diff options
context:
space:
mode:
authorGravatar Alexander Hedges <ahedges@ethz.ch>2015-11-07 18:33:07 +0100
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-11-08 12:19:15 -0800
commit32d54e37f79447cab508e5ae21ae6c9b805408bd (patch)
tree16f5e3ad23d7f6fab404a918b232d66bcd214f5e /share/tools
parent2bbad22248caafdf839a7229d127287db6be08c4 (diff)
Use unused cleanup_autogenerated_file
Diffstat (limited to 'share/tools')
-rwxr-xr-xshare/tools/create_manpage_completions.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/share/tools/create_manpage_completions.py b/share/tools/create_manpage_completions.py
index 2b0a04c9..471205fe 100755
--- a/share/tools/create_manpage_completions.py
+++ b/share/tools/create_manpage_completions.py
@@ -690,14 +690,7 @@ def cleanup_autogenerated_completions_in_directory(dir):
# Skip non .fish files
if not filename.endswith('.fish'): continue
path = os.path.join(dir, filename)
- try:
- if file_is_overwritable(path):
- os.unlink(path)
- except IOError:
- pass
- except OSError:
- pass
-
+ cleanup_autogenerated_file(path)
except OSError as err:
return False