Changes

Jump to navigation Jump to search
m
Line 66: Line 66:  
=== import tarfile ===
 
=== import tarfile ===
 
At some point, the behavior of the Python tarfile library seems to have changed (I've not yet hunted down the documentation.) In any case, on Build 767, it was generating .tar suffixes and on later builds (newer Python libraries?) it was generating .gtar suffixes. I got burnt by this in Turtle Art so now I check for both.
 
At some point, the behavior of the Python tarfile library seems to have changed (I've not yet hunted down the documentation.) In any case, on Build 767, it was generating .tar suffixes and on later builds (newer Python libraries?) it was generating .gtar suffixes. I got burnt by this in Turtle Art so now I check for both.
      
  if file_path.endswith(('.gtar', '.tar')):
 
  if file_path.endswith(('.gtar', '.tar')):

Navigation menu