mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2025-12-31 17:00:41 +00:00
Fixed version comparison
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user