From 5e7cd3322b04f1dd207829b70546bc7ffdd63363 Mon Sep 17 00:00:00 2001
From: zero323 <zero323@users.noreply.github.com>
Date: Mon, 13 Feb 2017 09:26:49 -0800
Subject: [PATCH] [SPARK-19506][ML][PYTHON] Import warnings in pyspark.ml.util

## What changes were proposed in this pull request?

Add missing `warnings` import.

## How was this patch tested?

Manual tests.

Author: zero323 <zero323@users.noreply.github.com>

Closes #16846 from zero323/SPARK-19506.
---
 python/pyspark/ml/util.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/python/pyspark/ml/util.py b/python/pyspark/ml/util.py
index c65b3d14be..02016f172a 100644
--- a/python/pyspark/ml/util.py
+++ b/python/pyspark/ml/util.py
@@ -17,6 +17,7 @@
 
 import sys
 import uuid
+import warnings
 
 if sys.version > '3':
     basestring = str
-- 
GitLab