Skip to content
Snippets Groups Projects
Commit 8a3851ba96fb authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

py3: add compatibility layer for basestring

parent b34561fa6289
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,10 @@
import hashlib
import subprocess
try:
basestring
except NameError:
basestring = (str, bytes)
def read_yaml(config_path):
""" Read a yaml config file and returns the results as a dict
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment