diff --git a/vcf/model.py b/vcf/model.py index 34a4d17..9ba75e2 100644 --- a/vcf/model.py +++ b/vcf/model.py @@ -272,6 +272,9 @@ def __iter__(self): def __str__(self): return "Record(CHROM=%(CHROM)s, POS=%(POS)s, REF=%(REF)s, ALT=%(ALT)s)" % self.__dict__ + def __repr__(self): + return str(self) + def add_format(self, fmt): self.FORMAT = self.FORMAT + ':' + fmt