Fix Python dependency in test scripts for KFileMetaData (bug 375472)

Authored by awilcox on Jul 11 2017, 7:41 PM.

Description

Fix Python dependency in test scripts for KFileMetaData (bug 375472)

Summary:
KFileMetaData test scripts are usable in both deprecated Python 2, and new Python 3. This removes 'python2' from the shebang and uses the regular 'python' interpreter, thereby removing the requirement of Python 2 being on a system to be able to test KFileMetaData.

Additionally, it removes unused imports.

Test Plan:
This patch was applied to:

  • 5.23
  • 5.26
  • 5.29

It was tested on Linux kernel 4.4 using:

  • x86_64
  • x86_32
  • PowerPC

With the following Python versions:

  • 2.7.10
  • 3.4.4
  • 3.5.1

It was tested on glibc and musl libc.

Reviewers: mgallien

Reviewed By: mgallien

Subscribers: Frameworks

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D4377

Details

Committed
mgallienJul 29 2017, 2:51 PM
Reviewer
mgallien
Differential Revision
D4377: Fix Python dependency in test scripts for KFileMetaData (bug 375472)
Parents
R286:8cf8a8dc0ec7: GIT_SILENT Upgrade KF5 version to 5.37.0.
Branches
Unknown
Tags
Unknown