mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-30 23:27:24 +01:00 
			
		
		
		
	Handled non-existent helps.
This commit is contained in:
		
							parent
							
								
									52bdcaf41d
								
							
						
					
					
						commit
						fea97c96b5
					
				| @ -70,7 +70,10 @@ def close(registry, filename, annotated=True): | ||||
|     helpCache = sets.Set() | ||||
|     fd = file(filename, 'w') | ||||
|     for (name, value) in registry.getValues(getChildren=True): | ||||
|         if annotated and hasattr(value,'help') and value.help not in helpCache: | ||||
|         if annotated and \ | ||||
|            hasattr(value,'help') and \ | ||||
|            value.help and \ | ||||
|            value.help not in helpCache: | ||||
|             helpCache.add(value.help) | ||||
|             lines = textwrap.wrap(value.help) | ||||
|             for (i, line) in enumerate(lines): | ||||
| @ -220,7 +223,7 @@ class SeparatedListOf(Value): | ||||
| class SpaceSeparatedListOfStrings(SeparatedListOf): | ||||
|     Value = String | ||||
|     def splitter(self, s): | ||||
|         return s.split(s) | ||||
|         return s.split() | ||||
|     joiner = ' '.join | ||||
|      | ||||
| class CommaSeparatedListOfStrings(SeparatedListOf): | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jeremy Fincher
						Jeremy Fincher