Created
November 6, 2012 02:05
-
-
Save j2labs/4022076 to your computer and use it in GitHub Desktop.
Sarah Palin joke inside Schematics.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove rogue fields | |
if len(class_fields) > 0: # if accumulation is not disabled | |
palins = data_fields - set(class_fields) | |
for rogue_field in palins: | |
del values[rogue_field] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment