Skip to content

Commit

Permalink
run modernizer
Browse files Browse the repository at this point in the history
  • Loading branch information
jmevissen committed Oct 3, 2018
1 parent da0c830 commit 0c648b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use the -c option to specify an alternate configuration file.
"""

from __future__ import print_function
import os
import shutil
import sys
Expand Down Expand Up @@ -73,7 +74,7 @@

options, args = parser.parse_args()
if options.version:
print("bootstrap.py version %s" % __version__)
print(("bootstrap.py version %s" % __version__))
sys.exit(0)


Expand All @@ -83,7 +84,7 @@
try:
from urllib.request import urlopen
except ImportError:
from urllib2 import urlopen
from six.moves.urllib.request import urlopen

ez = {}
if os.path.exists('ez_setup.py'):
Expand Down
2 changes: 1 addition & 1 deletion src/plone/app/debugtoolbar/browser/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def update(self):
continue

# FIXME: Should we include ComputedAttribute here ? [glenfant]
if isinstance(attr, (int, long, float, six.string_types, bool, list, tuple, dict, set, frozenset)):
if isinstance(attr, (int, float, six.string_types, bool, list, tuple, dict, set, frozenset)):
self.variables.append({
'name': name,
'primitive': True,
Expand Down

0 comments on commit 0c648b1

Please sign in to comment.