~ubuntuone-control-tower/ubuntu/lucid/ubuntuone-client/trunk

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/config.py

  • Committer: James Westby
  • Date: 2010-03-05 12:52:23 UTC
  • mfrom: (20.1.1 ubuntuone-client)
  • Revision ID: james.westby@canonical.com-20100305125223-iq346tozhxn8slp9
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
 
84
84
 
85
85
def throttling_limit_parser(value):
86
 
    """parser for throttling limit values, if value < 0 returns None"""
 
86
    """parser for throttling limit values, if value <= 0 returns None"""
87
87
    value = int(value)
88
 
    if value < 0:
 
88
    if value <= 0:
89
89
        return None
90
90
    else:
91
91
        return value