mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 10:37:13 +02:00
Make scripts compatible with Python 3 // Resolve #2779
This commit is contained in:
@ -280,7 +280,7 @@ Packages
|
|||||||
|
|
||||||
|
|
||||||
def generate_platform(name, rst_dir):
|
def generate_platform(name, rst_dir):
|
||||||
print "Processing platform: %s" % name
|
print("Processing platform: %s" % name)
|
||||||
|
|
||||||
compatible_boards = [
|
compatible_boards = [
|
||||||
board for board in BOARDS if name == board['platform']
|
board for board in BOARDS if name == board['platform']
|
||||||
@ -439,7 +439,7 @@ def update_platform_docs():
|
|||||||
|
|
||||||
|
|
||||||
def generate_framework(type_, data, rst_dir=None):
|
def generate_framework(type_, data, rst_dir=None):
|
||||||
print "Processing framework: %s" % type_
|
print("Processing framework: %s" % type_)
|
||||||
|
|
||||||
compatible_platforms = [
|
compatible_platforms = [
|
||||||
m for m in PLATFORM_MANIFESTS
|
m for m in PLATFORM_MANIFESTS
|
||||||
|
@ -18,7 +18,7 @@ from sys import exit as sys_exit
|
|||||||
|
|
||||||
|
|
||||||
def fix_symlink(root, fname, brokenlink):
|
def fix_symlink(root, fname, brokenlink):
|
||||||
print root, fname, brokenlink
|
print(root, fname, brokenlink)
|
||||||
prevcwd = getcwd()
|
prevcwd = getcwd()
|
||||||
|
|
||||||
chdir(root)
|
chdir(root)
|
||||||
|
Reference in New Issue
Block a user