Changeset 70 for pycodebattler


Ignore:
Timestamp:
12/22/10 21:35:37 (14 years ago)
Author:
atzm
Message:

fixed a trivial bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pycodebattler/trunk/pycodebattler/score.py

    r56 r70  
    2525 
    2626class Scorer: 
    27     def __init__(self, lines): 
     27    def __init__(self, lines, compress_level=9): 
    2828        self._code = ''.join(lines) 
    29         self._ccode = _compseq(lines, 9) 
     29        self._ccode = _compseq(lines, compress_level) 
    3030        self._lines = lines 
    3131        self._nlines = [l for l in lines 
     
    6262        return len(self.uncommented_lines()) or 1 
    6363 
    64     def compressibility(self, level=6): 
     64    def compressibility(self): 
    6565        return float(len(self._ccode)) / self.bytes() 
    6666 
Note: See TracChangeset for help on using the changeset viewer.