Browse Source

speed it up a little bit more, through removing some exception foo

import/heads/master
Cian Brennan 11 years ago
parent
commit
689e079f77
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      rbusers.py

+ 1
- 4
rbusers.py View File

@@ -33,10 +33,7 @@ else :
title_message = 'Total Number of Users Online:'
for user in users :
n = user.ut_user
try :
logged_users[n] = logged_users[n] + 1
except KeyError:
logged_users[n] = 1
logged_users[n] = logged_users.get(n, 0) + 1
friends_file = open( os.path.expanduser('~/.friends'), 'r')
friends = [ i.rstrip() for i in friends_file.readlines() ]
print '%s%s%s' % (' ' \


Loading…
Cancel
Save