Permalink
Browse files

use getattr

  • Loading branch information...
1 parent f811332 commit ae7f9d040b6641311c9d5343a601f89487a6a3de James Casbon committed Sep 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/vcf_melt
View
@@ -39,7 +39,7 @@ for record in reader:
for sample in record.samples:
row = [sample.sample]
- row += [flatten(sample.data.__getattribute__(x)) for x in formats]
+ row += [flatten(getattr(sample.data, x)) for x in formats]
row += [record.FILTER or '.']
row += fixed
row += info_row

0 comments on commit ae7f9d0

Please sign in to comment.