I am getting a warning in Python 3 version when I use `split()` command as follows: 

```
pattern = re.compile(r'\s*')
match = re.split(pattern, 'I am going to school')
print(match)

```

> 
> python3.6/re.py:212: FutureWarning: split()
>  requires a non-empty pattern match. return \_compile(pattern,
>  flags).split(string, maxsplit)
> 
> 
> 

I don't understand why I am getting this warning.