Fixed version comparison

This commit is contained in:
Jamie Hardt
2019-01-05 22:06:17 -08:00
parent f1fb83f208
commit 976d5844e2

View File

@@ -4,7 +4,7 @@ import os
import sys import sys
from collections import namedtuple from collections import namedtuple
if sys.version[0] == 3: if sys.version[0] == '3':
import pathlib import pathlib
else: else:
import urlparse, urllib import urlparse, urllib
@@ -40,7 +40,7 @@ class WavInfoReader():
""" """
absolute_path = os.path.abspath(path) absolute_path = os.path.abspath(path)
if sys.version[0] == 3: if sys.version[0] == '3':
#: `file://` url for the file. #: `file://` url for the file.
self.url = pathlib.Path(absolute_path).as_uri() self.url = pathlib.Path(absolute_path).as_uri()
else: else: