Commit 7e846f1e authored by Lubomir Bulej's avatar Lubomir Bulej

Merge branch 'python-three-fix' into 'master'

Minor changes to the script to use Python 3.

See merge request disl/disl!7
parents a7bc3130 fbce402c
Pipeline #4899 passed with stages
in 2 minutes and 55 seconds
#!/usr/bin/env python
#!/usr/bin/env python3
import argparse
import itertools
......@@ -306,12 +306,12 @@ def flatten_all(object):
if object is None:
return None
if isinstance(object, basestring):
if isinstance(object, str):
return [object]
result = []
for x in object:
if hasattr(x, "__iter__") and not isinstance(x, basestring):
if hasattr(x, "__iter__") and not isinstance(x, str):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment