Refactoring code

This commit is contained in:
Karan Goel
2013-08-24 17:54:21 +05:30
parent 68250c8873
commit bf343d7d1d
+7 -3
View File
@@ -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()