~freecad-community/freecad-extras/assembly2

« back to all changes in this revision

Viewing changes to importPart.py

  • Committer: looooo
  • Date: 2017-04-29 20:45:27 UTC
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: git-v1:b1dec62143dc055898bad6a73fb53e87cb9f68e2
py3: exceptions + dict.has_key
except Error msg: --> except Error as msg:
dict.has_key(value) --> value in dict

Show diffs side-by-side

added added

removed removed

Lines of Context:
575
575
            return diff.error1 == 0 and diff.error2 == 0
576
576
        else:
577
577
            return False
578
 
    except (IndexError, AttributeError), msg:
 
578
    except (IndexError, AttributeError) as e:
579
579
        return False
580
580
 
581
581