From f952b08f84505c0a283a2d0df957f81c8e39d373 Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 20 Jun 2019 12:58:32 +0200 Subject: [PATCH] gyp: move from __future__ import to the top of the file Fixes #1774 PR-URL: https://github.com/nodejs/node-gyp/pull/1789 Reviewed-By: Rod Vagg --- gyp/tools/pretty_sln.py | 4 ++-- gyp/tools/pretty_vcproj.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gyp/tools/pretty_sln.py b/gyp/tools/pretty_sln.py index 731844caf7..196566fb9e 100755 --- a/gyp/tools/pretty_sln.py +++ b/gyp/tools/pretty_sln.py @@ -12,8 +12,6 @@ Then it outputs a possible build order. """ -__author__ = 'nsylvain (Nicolas Sylvain)' - from __future__ import print_function import os @@ -21,6 +19,8 @@ import sys import pretty_vcproj +__author__ = 'nsylvain (Nicolas Sylvain)' + def BuildProject(project, built, projects, deps): # if all dependencies are done, we can build it, otherwise we try to build the # dependency. diff --git a/gyp/tools/pretty_vcproj.py b/gyp/tools/pretty_vcproj.py index 51cfc4e081..da7eb254cc 100755 --- a/gyp/tools/pretty_vcproj.py +++ b/gyp/tools/pretty_vcproj.py @@ -11,7 +11,6 @@ It outputs the resulting xml to stdout. """ -__author__ = 'nsylvain (Nicolas Sylvain)' from __future__ import print_function @@ -21,6 +20,8 @@ from xml.dom.minidom import parse from xml.dom.minidom import Node +__author__ = 'nsylvain (Nicolas Sylvain)' + REPLACEMENTS = dict() ARGUMENTS = None