diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2016-05-24 21:44:30 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2016-05-24 21:44:30 +0200 |
commit | 646640b0962a1b309bc35157406512129fcc4c4d (patch) | |
tree | 026d1949750904a10b81d6dacd4bbb08eb10133f /mageiaSync/mageiaSyncExt.py | |
parent | 1d2dc97ffac110ee8dca2d3a83deb6953bcfee01 (diff) | |
download | MageiaSync-646640b0962a1b309bc35157406512129fcc4c4d.tar MageiaSync-646640b0962a1b309bc35157406512129fcc4c4d.tar.gz MageiaSync-646640b0962a1b309bc35157406512129fcc4c4d.tar.bz2 MageiaSync-646640b0962a1b309bc35157406512129fcc4c4d.tar.xz MageiaSync-646640b0962a1b309bc35157406512129fcc4c4d.zip |
Suppress no more used code (Date check)
Diffstat (limited to 'mageiaSync/mageiaSyncExt.py')
-rw-r--r-- | mageiaSync/mageiaSyncExt.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/mageiaSync/mageiaSyncExt.py b/mageiaSync/mageiaSyncExt.py index f2240fd..4abbee6 100644 --- a/mageiaSync/mageiaSyncExt.py +++ b/mageiaSync/mageiaSyncExt.py @@ -58,30 +58,6 @@ class checkThread(QThread): checkvalue += 128 return checkvalue - def processDate(self): - import datetime as datetime - import time - import locale - locale.setlocale(locale.LC_ALL, 'C') - # Get and process the date from the file DATE.txt - try: - dateFile=open(str(self.destination)+'/'+self.path+'/DATE.txt','r') - except: - return False - refDate=dateFile.readline() - lits=re.split("\W+", refDate) - nums=re.findall("([0-9]+)", refDate) - refTime=re.findall("[0-9]*:[0-9]*:[0-9]*", refDate)[0] - refDay=eval(nums[0]) - refYear=eval(nums[-1]) - refMonth=time.strptime(lits[1], "%b").tm_mon - # Date of file - info=datetime.datetime.fromtimestamp(os.path.getmtime(str(self.destination)+'/'+self.path+'/'+self.name)) - if(refDay==info.day and refMonth==info.month and refYear==info.year and refTime==info.strftime("%H:%M:%S")): - return True - else: - return False - def setup(self, destination, path,name,isoIndex): self.destination=destination self.path=path |