Changeset 7b50f14 in sasview for test


Ignore:
Timestamp:
Sep 22, 2017 7:40:41 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
d04ac05
Parents:
46cf4c9
Message:

restore python 2 functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/sasdataloader/test/utest_cansas.py

    r56dac0b r7b50f14  
    44import os 
    55import sys 
    6 from io import StringIO 
    76import unittest 
    87import logging 
    98import warnings 
     9if sys.version_info[0] >= 3: 
     10    from io import StringIO 
     11else: 
     12    from StringIO import StringIO 
    1013 
    1114from lxml import etree 
Note: See TracChangeset for help on using the changeset viewer.