from twitter.oauth import OAuth, read_token_file
from twitter.oauth_dance import oauth_dance
from twitter.util import printNicely
-from StringIO import StringIO
from .draw import *
from .colors import *
from .interactive import *
from .db import *
from .c_image import *
+from .py3patch import *
+
g = {}
db = RainbowDB()
f = open(path,'w')
f.write(c['theme'])
f.close()
+ os.system('chmod 777 ' + path)
printNicely(light_green('Okay it will be applied from next time :)'))
else:
# Change theme
# Follower and following
usage += '\n'
- usage += s + grey(u'\u266A' + ' Fiends and followers \n')
+ usage += s + grey(u'\u266A' + ' Friends and followers \n')
usage += s * 2 + \
light_green('ls fl') + \
' will list all followers (people who are following you).\n'
try:
g['stuff'] = ' '.join(line.split()[1:])
process(cmd)()
- except Exception,e :
- print e
+ except Exception:
printNicely(red('OMG something is wrong with Twitter right now.'))
# Not redisplay prefix
if cmd in ['switch', 't', 'rt', 'rep']: