Skip to content

Commit

Permalink
Merge pull request swcarpentry#85 from gdevenyi/gh-pages
Browse files Browse the repository at this point in the history
Import future print in case of python2 environment
  • Loading branch information
Greg Wilson authored Jul 21, 2016
2 parents d02d8a7 + f3b921a commit 5f116cd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/extract_figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from optparse import OptionParser

from util import Reporter, read_markdown, IMAGE_FILE_SUFFIX

from __future__ import print_function

def main():
"""Main driver."""
Expand Down
2 changes: 1 addition & 1 deletion bin/lesson_initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import sys
import os

from __future__ import print_function

ROOT_AUTHORS = '''\
FIXME: list authors' names and email addresses.
Expand Down
1 change: 1 addition & 0 deletions bin/repo_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from optparse import OptionParser

from util import Reporter, load_yaml, require
from __future__ import print_function

# Import this way to produce a more useful error message.
try:
Expand Down
1 change: 1 addition & 0 deletions bin/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import json
from subprocess import Popen, PIPE
from __future__ import print_function

# Import this way to produce a more useful error message.
try:
Expand Down
2 changes: 1 addition & 1 deletion bin/workshop_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import re
from datetime import date
from util import Reporter, split_metadata, load_yaml, check_unwanted_files

from __future__ import print_function

# Metadata field patterns.
EMAIL_PATTERN = r'[^@]+@[^@]+\.[^@]+'
Expand Down

0 comments on commit 5f116cd

Please sign in to comment.