Changes between Version 262 and Version 263 of WikiStart


Ignore:
Timestamp:
06/12/2016 07:38:55 PM (2 years ago)
Author:
hawkowl
Comment:

some syntax updates

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v262 v263  
    213213{{{
    214214#!python
     215from __future__ import print_function
     216
    215217import sys
    216218
     
    229231        yield client.select('INBOX')
    230232        info = yield client.fetchEnvelope(imap4.MessageSet(1))
    231         print 'First message subject:', info[1]['ENVELOPE'][1]
     233        print('First message subject:', info[1]['ENVELOPE'][1])
    232234    except:
    233         print "IMAP4 client interaction failed"
     235        print("IMAP4 client interaction failed")
    234236        failure.Failure().printTraceback()
    235237
    236 # This API requires Twisted 12.3 or later, or a trunk checkout:
    237238task.react(main, sys.argv[1:])
    238239}}}