Author: bugman Date: Tue Nov 11 16:41:51 2014 New Revision: 26534 URL: http://svn.gna.org/viewcvs/relax?rev=26534&view=rev Log: Manual Python 3 fixes for the dict.key() function which returns a list or iterator in Python 2 or 3. This matches r26519 in trunk. Modified: branches/frame_order_cleanup/specific_analyses/frame_order/checks.py Modified: branches/frame_order_cleanup/specific_analyses/frame_order/checks.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/specific_analyses/frame_order/checks.py?rev=26534&r1=26533&r2=26534&view=diff ============================================================================== --- branches/frame_order_cleanup/specific_analyses/frame_order/checks.py (original) +++ branches/frame_order_cleanup/specific_analyses/frame_order/checks.py Tue Nov 11 16:41:51 2014 @@ -51,7 +51,7 @@ if not hasattr(cdp, 'domain'): defined = False msg = "No domains have been defined. Please use the domain user function." - if domain != None and domain not in list(cdp.domain.keys()): + if domain != None and domain not in cdp.domain: defined = False msg = "The domain '%s' has not been defined. Please use the domain user function." % domain