Skip to content

Commit

Permalink
fixes version fetch for python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
leandromoreira committed Aug 20, 2014
1 parent 01fdd66 commit a881da0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions m3u8/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# license that can be found in the LICENSE file.

import sys
PYTHON_MAJOR_VERSION = sys.version_info.major
PYTHON_MAJOR_VERSION = sys.version_info

import os
import posixpath
Expand Down Expand Up @@ -46,7 +46,7 @@ def load(uri):
def _load_from_uri(uri):
resource = urlopen(uri)
base_uri = _parsed_url(_url_for(uri))
if PYTHON_MAJOR_VERSION < 3:
if PYTHON_MAJOR_VERSION < (3,):
content = _read_python2x(resource)
else:
content = _read_python3x(resource)
Expand Down

0 comments on commit a881da0

Please sign in to comment.