mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Fix tests for Python 2.5
This commit is contained in:
@@ -18,14 +18,19 @@ import sys
|
||||
import unittest
|
||||
import httplib
|
||||
import traceback
|
||||
import json
|
||||
import urlparse
|
||||
|
||||
import github
|
||||
|
||||
atLeastPython26 = sys.hexversion >= 0x02060000
|
||||
atLeastPython3 = sys.hexversion >= 0x03000000
|
||||
atMostPython32 = sys.hexversion < 0x03030000
|
||||
|
||||
if atLeastPython26:
|
||||
import json
|
||||
else: # pragma no cover
|
||||
import simplejson as json # pragma no cover
|
||||
|
||||
|
||||
def readLine(file):
|
||||
if atLeastPython3:
|
||||
|
||||
Reference in New Issue
Block a user