~ubuntu-core-dev/ubuntu/xenial/ubuntu-release-upgrader/xenial

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeViewKDE.py

  • Committer: Dimitri John Ledkov
  • Date: 2015-01-20 22:30:06 UTC
  • mto: This revision was merged to the branch mainline in revision 2859.
  • Revision ID: dimitri.j.ledkov@intel.com-20150120223006-ba30fbqtp4x2n0og
Fix resource warnings & logging.warn deprecation warning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
864
864
          time.sleep(0.01)
865
865
 
866
866
  if sys.argv[1] == "--show-in-terminal":
867
 
      for c in open(sys.argv[2]).read():
 
867
      with open(sys.argv[2]) as f:
 
868
          chars = f.read()
 
869
      for c in chars:
868
870
          view.terminal_text.insertWithTermCodes( c )
869
871
          #print(c, ord(c))
870
872
          QApplication.processEvents()