mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Fix wscript to support both Python 2 and Python 3.
This commit is contained in:
parent
e3a7be1cfe
commit
424c7b69db
7
wscript
7
wscript
@ -1,8 +1,11 @@
|
||||
#! /usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
from urllib2 import urlopen # Python 2
|
||||
# from urllib.request import urlopen # Python 3
|
||||
try:
|
||||
from urllib2 import urlopen # Python 2
|
||||
except ImportError:
|
||||
from urllib.request import urlopen # Python 3
|
||||
|
||||
import os.path
|
||||
from subprocess import call
|
||||
import sys
|
||||
|
Loading…
Reference in New Issue
Block a user