corrected the try - import statement

Bu işleme şunda yer alıyor:
MalcolmMielle 2014-11-04 13:49:09 +01:00
ebeveyn 543ebfbb89
işleme e2c85047ce
1 değiştirilmiş dosya ile 10 ekleme ve 8 silme

Dosyayı Görüntüle

@ -3,16 +3,18 @@
from __future__ import print_function #print function python 2 and 3 compatible
import email
import hashlib
import imaplib
import os.path
import requests
import sys
import time
#This is used to import library depending on the python version used.
try:
#import urllib.request as urllib_request #for python 3
import email
import hashlib
import imaplib
#import urllib.request as urllib_request #for python 3
import json
import os.path
import requests
import sys
import time
except ImportError:
#import urllib2 as urllib_request # for python 2
import simplejson as json