This is an automated email from the ASF dual-hosted git repository.
altay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 4a09f28 Fix Python logging in setup.py
new b2dce64 Merge pull request #7752 from
markflyhigh/fix-disable-nocapture
4a09f28 is described below
commit 4a09f28197360820747248b1daea479dd73f4fe3
Author: Mark Liu <[email protected]>
AuthorDate: Wed Feb 6 15:01:53 2019 -0800
Fix Python logging in setup.py
---
sdks/python/apache_beam/__init__.py | 4 ++--
sdks/python/setup.py | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/sdks/python/apache_beam/__init__.py
b/sdks/python/apache_beam/__init__.py
index 1ab56ad..e06cc69 100644
--- a/sdks/python/apache_beam/__init__.py
+++ b/sdks/python/apache_beam/__init__.py
@@ -74,13 +74,13 @@ has some examples.
from __future__ import absolute_import
-import logging
import os
import sys
+import warnings
if sys.version_info[0] == 3:
- logging.warning(
+ warnings.warn(
'Running the Apache Beam SDK on Python 3 is not yet fully supported. '
'You may encounter buggy behavior or missing features.')
elif sys.version_info[0] == 2 and sys.version_info[1] == 7:
diff --git a/sdks/python/setup.py b/sdks/python/setup.py
index f908638..c44c97e 100644
--- a/sdks/python/setup.py
+++ b/sdks/python/setup.py
@@ -20,7 +20,6 @@
from __future__ import absolute_import
from __future__ import print_function
-import logging
import os
import platform
import sys
@@ -171,7 +170,7 @@ def generate_protos_first(original_cmd):
python_requires = '>=2.7<=3.7'
if sys.version_info[0] == 3:
- logging.warning(
+ warnings.warn(
'Python 3 support for the Apache Beam SDK is not yet fully supported. '
'You may encounter buggy behavior or missing features.')