mirror of
https://github.com/wassname/RedditAgain.git
synced 2026-06-27 16:28:42 +08:00
Refactoring code
This commit is contained in:
+7
-3
@@ -7,12 +7,12 @@ import praw
|
||||
USER_AGENT = 'RedditAgain by @karangoeluw // github: thekarangoel'
|
||||
|
||||
def print_dot():
|
||||
"""Prints out a dot on the same line when called"""
|
||||
sys.stdout.write('. ')
|
||||
sys.stdout.flush()
|
||||
print
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
def main():
|
||||
print '>> Login to OLD account..'
|
||||
|
||||
old_r = praw.Reddit(USER_AGENT) # praw.Reddit
|
||||
@@ -53,4 +53,8 @@ if __name__ == '__main__':
|
||||
print_dot()
|
||||
|
||||
print '>> Done migrating.'
|
||||
print '>> Go to https://ssl.reddit.com/prefs/delete/ to delete your old account.'
|
||||
print '>> Go to https://ssl.reddit.com/prefs/delete/ to delete your old account.'
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user