Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaked a comparison statement #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions m3uparser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# more info on the M3U file format available here:
# http://n4k3d.com/the-m3u-file-format/

import _io
import sys

class track():
Expand All @@ -18,9 +19,9 @@ def __init__(self, length, title, path):
..\Minus The Bear - Planet of Ice\Minus The Bear_Planet of Ice_01_Burying Luck.mp3
"""

def parsem3u(infile):
def parseM3U(infile):
try:
assert(type(infile) == '_io.TextIOWrapper')
assert(type(infile) == _io.TextIOWrapper)
except AssertionError:
infile = open(infile,'r')

Expand Down