Skip to content

Commit 6d93af1

Browse files
committed
Changed string concat to format(). Static method.
1 parent 623a988 commit 6d93af1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pythonforandroid/toolchain.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,10 +576,11 @@ def add_parser(subparsers, *args, **kwargs):
576576
# Each subparser corresponds to a method
577577
getattr(self, args.subparser_name.replace('-', '_'))(args)
578578

579-
def warn_on_carriage_return_args(self, args):
579+
@staticmethod
580+
def warn_on_carriage_return_args(args):
580581
for check_arg in args:
581582
if '\r' in check_arg:
582-
warning("Argument '" + str(check_arg.replace('\r', '')) + "' contains a carriage return (\\r).")
583+
warning("Argument '{}' contains a carriage return (\\r).".format(str(check_arg.replace('\r', ''))))
583584
warning("Invoking this program via scripts which use CRLF instead of LF line endings will have undefined behaviour.")
584585

585586
def warn_on_deprecated_args(self, args):

0 commit comments

Comments
 (0)