Changeset 59


Ignore:
Timestamp:
03/09/06 07:50:37 (18 years ago)
Author:
bas
Message:

EmailtoTracScript?:

email2trac.py.in:

  • Removed some obsolete code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/email2trac.py.in

    r57 r59  
    501501
    502502                        url_filename = urllib.quote(filename)
    503 
    504503                        if self.VERSION > 0.8:
    505                                 #tmpfile = '/tmp/email2trac-ticket%sattachment' % str(ticket['id'])
    506504                                dir = '/tmp'
    507505                        else:
     
    511509                                        mkdir_p(dir, 0755)
    512510
    513                                 #tmpfile = os.path.join(dir, url_filename)
    514 
    515511                        path, fd =  util.create_unique_file(os.path.join(dir, url_filename))
    516                         #f = open(tmpfile, 'wb')
    517512                        text = part.get_payload(decode=1)
    518513                        if not text:
     
    523518                        # get the filesize
    524519                        #
    525                         #stats = os.lstat(tmpfile)
    526520                        stats = os.lstat(path)
    527521                        filesize = stats[stat.ST_SIZE]
Note: See TracChangeset for help on using the changeset viewer.