Renew check-pyc-timestamps.py

- rename it, the are no pyo files on Python 3
- make sure to check all levels of pyc files optimization
- use path globs
- use comprehensions instead of map + filter
- use f-strings and print() instead of sys.stderr.write()
This commit is contained in:
Miro Hrončok 2018-07-26 14:19:23 +02:00
commit b49696cee1
3 changed files with 57 additions and 68 deletions

View file

@ -232,8 +232,8 @@ Source: https://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
# A simple script to check timestamps of bytecode files
# Run in check section with Python that is currently being built
# Written by bkabrda
Source8: check-pyc-and-pyo-timestamps.py
# Originally written by bkabrda
Source8: check-pyc-timestamps.py
# Desktop menu entry for idle3
Source10: idle3.desktop