1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-30 02:17:56 +01:00

scripts: fix import for urllib2 in python3

This commit is contained in:
pxgamer 2018-08-24 12:47:39 +01:00 committed by Starbeamrainbowlabs
parent fae6737841
commit ce97ed1f7c

View file

@ -1,7 +1,10 @@
import json
import os
import sys
import urllib2
try:
import urllib.request as urllib2
except ImportError:
import urllib2
URL = 'https://tldr-bot.starbeamrainbowlabs.com/'