Skip to content

Commit

Permalink
Set travis env to Python 3.7 (#1151)
Browse files Browse the repository at this point in the history
* Set travis env to Python 3.7

Bikeshed requires 3.7, see
speced/bikeshed#321 (comment)

* Fix import of queue for python3

* Missed 1 more Queue

* Update shebangs to python3
  • Loading branch information
ngzhian authored Mar 24, 2020
1 parent e84c676 commit b338a49
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: c++
language: python
python:
- "2.7"
- "3.7"

sudo: on

Expand All @@ -15,7 +15,6 @@ install:
- sudo pip install sphinx==1.7.9
- sudo apt-get install texlive-full yarn
- git clone https://github.com/tabatkins/bikeshed.git
- git -C $PWD/bikeshed checkout 087ea90e1ebd0321c20373d89950d1c6b73d5df1
- pip install --editable $PWD/bikeshed
- bikeshed update

Expand Down
2 changes: 1 addition & 1 deletion document/core/util/bikeshed_fixup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# -*- coding: latin-1 -*-

import os
Expand Down
6 changes: 3 additions & 3 deletions document/core/util/mathjax2katex.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# -*- coding: latin-1 -*-

import Queue
import queue
import os
import re
import shelve
Expand Down Expand Up @@ -239,7 +239,7 @@ def Worker():
q.task_done()
sys.stderr.write('.')

q = Queue.Queue()
q = queue.Queue()
for i in range(40):
t = threading.Thread(target=Worker)
t.daemon = True
Expand Down
2 changes: 1 addition & 1 deletion test/core/run.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
import argparse
Expand Down

0 comments on commit b338a49

Please sign in to comment.