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:
parent
fae6737841
commit
ce97ed1f7c
1 changed files with 4 additions and 1 deletions
|
@ -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/'
|
||||
|
||||
|
|
Loading…
Reference in a new issue