We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 11472dd + e04deb2 commit fee39eaCopy full SHA for fee39ea
flask_script/commands.py
@@ -368,7 +368,7 @@ class Clean(Command):
368
def run(self):
369
for dirpath, dirnames, filenames in os.walk('.'):
370
for filename in filenames:
371
- if '.pyc' or '.pyo' in filename:
+ if filename.endswith('.pyc') or filename.endswith('.pyo'):
372
full_pathname = os.path.join(dirpath, filename)
373
print 'Removing %s' % full_pathname
374
os.remove(full_pathname)
0 commit comments