Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
swc-bb
swc-pages
2019-11-26-Potsdam-Berlin-Python
Commits
f3b921a5
Commit
f3b921a5
authored
Jul 21, 2016
by
Gabriel A. Devenyi
Browse files
Import future print in case of python2 environment
parent
d02d8a77
Changes
5
Hide whitespace changes
Inline
Side-by-side
bin/extract_figures.py
View file @
f3b921a5
...
...
@@ -6,7 +6,7 @@ import glob
from
optparse
import
OptionParser
from
util
import
Reporter
,
read_markdown
,
IMAGE_FILE_SUFFIX
from
__future__
import
print_function
def
main
():
"""Main driver."""
...
...
bin/lesson_initialize.py
View file @
f3b921a5
...
...
@@ -5,7 +5,7 @@
import
sys
import
os
from
__future__
import
print_function
ROOT_AUTHORS
=
'''
\
FIXME: list authors' names and email addresses.
...
...
bin/repo_check.py
View file @
f3b921a5
...
...
@@ -11,6 +11,7 @@ import re
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
:
...
...
bin/util.py
View file @
f3b921a5
...
...
@@ -2,6 +2,7 @@ import sys
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
:
...
...
bin/workshop_check.py
View file @
f3b921a5
...
...
@@ -9,7 +9,7 @@ import os
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
'[^@]+@[^@]+\.[^@]+'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment