missing parens -> matched what we did not want to match
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								49bdd83ea1
							
						
					
				
			
			
				commit
				
					
						7ab5cd35ac
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -135,8 +135,8 @@ class DirectoryDict(collections.MutableMapping):
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            with open(os.path.join(self.path, key), "w") as fd:
 | 
					            with open(os.path.join(self.path, key), "w") as fd:
 | 
				
			||||||
                if (not hasattr(value, 'strip') and
 | 
					                if (not hasattr(value, 'strip') and
 | 
				
			||||||
                    hasattr(value, '__getitem__') or
 | 
					                    (hasattr(value, '__getitem__') or
 | 
				
			||||||
                    hasattr(value, '__iter__')):
 | 
					                    hasattr(value, '__iter__'))):
 | 
				
			||||||
                    # if it looks like a sequence and quacks like a sequence,
 | 
					                    # if it looks like a sequence and quacks like a sequence,
 | 
				
			||||||
                    # it is a sequence
 | 
					                    # it is a sequence
 | 
				
			||||||
                    for v in value:
 | 
					                    for v in value:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue