Did I find the right examples for you? yes no

All Samples(12)  |  Call(6)  |  Derive(0)  |  Import(6)
Fix to be make with work with python 2.6

src/b/e/benchbase-1.1.0/benchbase/bencher.py   benchbase(Download)
import datetime
from model import INSERT_QUERY, SCHEMAS
from util import md5sum, mygzip, truncate, str2id
 
 
    def importXmlFile(self, bid, filename):
        db = self.db
        if filename.endswith('.gz'):
            f = mygzip(filename)
        else:

src/b/e/benchbase-HEAD/benchbase/bencher.py   benchbase(Download)
import datetime
from model import INSERT_QUERY, SCHEMAS
from util import md5sum, mygzip, truncate, str2id
 
 
    def importXmlFile(self, bid, filename):
        db = self.db
        if filename.endswith('.gz'):
            f = mygzip(filename)
        else:

src/b/e/benchbase-1.1.0/benchbase/sar.py   benchbase(Download)
"""Extract information from a sysstat sar text file."""
import logging
from util import mygzip
 
 
        c.execute('INSERT INTO host (bid, host, comment) VALUES (?, ?, ?)', t)
        if filename.endswith('.gz'):
            f = mygzip(filename)
        else:
            f = open(filename)

src/b/e/benchbase-HEAD/benchbase/sar.py   benchbase(Download)
"""Extract information from a sysstat sar text file."""
import logging
from util import mygzip
 
 
        c.execute('INSERT INTO host (bid, host, comment) VALUES (?, ?, ?)', t)
        if filename.endswith('.gz'):
            f = mygzip(filename)
        else:
            f = open(filename)

src/b/e/benchbase-1.1.0/benchbase/jmeter.py   benchbase(Download)
import csv
from bencher import Bencher
from util import mygzip
 
 
    def importOtherFormat(self, bid, filename):
        """Handle CSV file"""
        db = self.db
        if filename.endswith('.gz'):
            f = mygzip(filename)

src/b/e/benchbase-HEAD/benchbase/jmeter.py   benchbase(Download)
import csv
from bencher import Bencher
from util import mygzip
 
 
    def importOtherFormat(self, bid, filename):
        """Handle CSV file"""
        db = self.db
        if filename.endswith('.gz'):
            f = mygzip(filename)