8556: ValueError: underlying buffer has been detached (from Paul's patch)
This commit is contained in:
		@@ -126,7 +126,7 @@ class GrampsXmlWriter(UpdateCallback):
 | 
			
		||||
        """
 | 
			
		||||
        if filename == '-':
 | 
			
		||||
            import sys
 | 
			
		||||
            g = sys.stdout
 | 
			
		||||
            g = sys.stdout.buffer
 | 
			
		||||
            self.compress = False
 | 
			
		||||
        else:
 | 
			
		||||
            base = os.path.dirname(filename)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user