File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
2
Package to fetch information from Quora.
3
- Supports Python 2.7.
3
+ Supports Python 3.7
4
4
Source: https://github.com/csu/pyquora.
5
5
Use help(quora.quora) or help(quora.user) for more help.
6
6
"""
7
7
8
- from user import User , Activity
9
- from quora import Quora , try_cast_int
8
+ from . user import User , Activity
9
+ from . quora import Quora , try_cast_int
Original file line number Diff line number Diff line change 1
1
#coding=utf-8
2
2
3
3
from bs4 import BeautifulSoup
4
- from quora import try_cast_int
4
+ from . quora import try_cast_int
5
5
import feedparser
6
6
import re
7
7
import requests
13
13
### Enumerated Types ###
14
14
def enum (* sequential , ** named ):
15
15
enums = dict (zip (sequential , range (len (sequential ))), ** named )
16
- reverse = dict ((value , key ) for key , value in enums .iteritems ())
16
+ reverse = dict ((value , key ) for key , value in enums .items ())
17
17
enums ['reverse_mapping' ] = reverse
18
18
return type ('Enum' , (), enums )
19
19
You can’t perform that action at this time.
0 commit comments