Skip to content

Commit 766a281

Browse files
authored
fix(python): print warning to stderr instead of stdout (#152)
1 parent ad5ece0 commit 766a281

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/python/configuration.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# coding: utf-8
22

3+
import sys
4+
35
{{>partial_header}}
46
class HostConfiguration:
57
def __init__(self,
@@ -11,7 +13,7 @@ class HostConfiguration:
1113
print("WARNING: STACKIT will move to a new way of specifying regions, where the region is provided\n",
1214
"as a function argument instead of being set in the client configuration.\n"
1315
"Once all services have migrated, the methods to specify the region in the client configuration "
14-
"will be removed.")
16+
"will be removed.", file=sys.stderr)
1517
"""Constructor
1618
"""
1719
self._base_path = "{{{basePath}}}"

0 commit comments

Comments
 (0)