mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 12:46:02 +02: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 json
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import urllib2
|
try:
|
||||||
|
import urllib.request as urllib2
|
||||||
|
except ImportError:
|
||||||
|
import urllib2
|
||||||
|
|
||||||
URL = 'https://tldr-bot.starbeamrainbowlabs.com/'
|
URL = 'https://tldr-bot.starbeamrainbowlabs.com/'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue