1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-03 08:24:27 +00:00

fixed ci in python3 (#251)

* fixed ci in python3

* remove python2 compatible code
This commit is contained in:
Xiangyue Cai
2019-07-16 12:00:45 +08:00
committed by Jiaqiang Xu
parent 71fea8c73c
commit b85d194b4b
10 changed files with 4 additions and 45 deletions

View File

@@ -14,24 +14,7 @@ a directory before running this script. That directory is passed in as the
'--thirdpartdir' arguments.
'''
from __future__ import print_function
from future import standard_library
standard_library.install_aliases()
from builtins import input
from builtins import object
import sys
####################
### Requires Python 2.6+
####################
if sys.version_info[0] == 3:
print('Python 3 not supported yet. Quit now.')
sys.exit(1)
if sys.version_info[1] < 6:
print('Python 2.6 or above is required. Quit now.')
sys.exit(1)
import os
import glob
import subprocess