Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/h/e/hellanzb-HEAD/Hellanzb/NZBLeecher/DupeHandler.py   hellanzb(Download)
import os, ArticleDecoder, Hellanzb
from Hellanzb.Log import *
from Hellanzb.Util import dupeName, getFileExtension, nextDupeName, DUPE_SUFFIX_RE
from Hellanzb.NZBLeecher.NZBLeecherUtil import validWorkingFile
 
        parentFilename = dest[:-12] # remove .segmentXXXX
        segmentNumStr = dest[-12:] # just .segmentXXXX
        dupeNZBFileName = nextDupeName(parentFilename, eschewNames = knownRealNZBFilenames())
 
        beingDownloadedNZBSegment = Hellanzb.queue.isBeingDownloadedFile(dest)
 
                    # Set our filename now, since we know it, for sanity sake
                    dupeFilename = nextDupeName(os.path.join(Hellanzb.WORKING_DIR, file),
                                                checkOnDisk = False,
                                                minIteration = dupeEntry[0] + 1)

src/h/e/hellanzb-HEAD/Hellanzb/test/DupeNameTestCase.py   hellanzb(Download)
from Hellanzb.test import HellanzbTestCase
from Hellanzb.Log import *
from Hellanzb.Util import cleanDupeName, dupeName, nextDupeName, touch
 
__id__ = '$Id$'