Skip to content

Commit

Permalink
Added the skip() method to the rigidity class.
Browse files Browse the repository at this point in the history
  • Loading branch information
austinhartzheim committed Aug 9, 2015
1 parent fe8ccb5 commit 0b6d147
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rigidity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ def validate(self, row):
# Return the updated data
return row

def skip(self):
'''
Return a row, skipping validation. This is useful when you want
to skip validation of header information.
'''
return next(self.csvobj)

def __iter__(self):
for row in iter(self.csvobj):
try:
Expand Down

0 comments on commit 0b6d147

Please sign in to comment.