summaryrefslogtreecommitdiff
path: root/Tools/scripts/ptags.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/scripts/ptags.py')
-rwxr-xr-xTools/scripts/ptags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/ptags.py b/Tools/scripts/ptags.py
index b3a693e230..fdf7bd1dc4 100755
--- a/Tools/scripts/ptags.py
+++ b/Tools/scripts/ptags.py
@@ -33,7 +33,7 @@ def treat_file(file):
print 'Cannot open', file
return
base = path.basename(file)
- if base[-3:] = '.py': base = base[:-3]
+ if base[-3:] == '.py': base = base[:-3]
s = base + '\t' + file + '\t' + '1\n'
tags.append(s)
while 1: