mirror of
				https://github.com/Garmelon/PFERD.git
				synced 2025-11-04 06:32:52 +01:00 
			
		
		
		
	Disable interpolation of ConfigParser
This commit is contained in:
		@@ -25,6 +25,9 @@ ambiguous situations.
 | 
				
			|||||||
### Added
 | 
					### Added
 | 
				
			||||||
- A KIT IPD crawler
 | 
					- A KIT IPD crawler
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Removed
 | 
				
			||||||
 | 
					- [Interpolation](https://docs.python.org/3/library/configparser.html#interpolation-of-values) in config file
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## 3.2.0 - 2021-08-04
 | 
					## 3.2.0 - 2021-08-04
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Added
 | 
					### Added
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,11 +4,11 @@ A config file consists of sections. A section begins with a `[section]` header,
 | 
				
			|||||||
which is followed by a list of `key = value` pairs. Comments must be on their
 | 
					which is followed by a list of `key = value` pairs. Comments must be on their
 | 
				
			||||||
own line and start with `#`. Multiline values must be indented beyond their key.
 | 
					own line and start with `#`. Multiline values must be indented beyond their key.
 | 
				
			||||||
Boolean values can be `yes` or `no`. For more details and some examples on the
 | 
					Boolean values can be `yes` or `no`. For more details and some examples on the
 | 
				
			||||||
format, see the [configparser documentation][1] ([basic interpolation][2] is
 | 
					format, see the [configparser documentation][1] ([interpolation][2] is
 | 
				
			||||||
enabled).
 | 
					disabled).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[1]: <https://docs.python.org/3/library/configparser.html#supported-ini-file-structure> "Supported INI File Structure"
 | 
					[1]: <https://docs.python.org/3/library/configparser.html#supported-ini-file-structure> "Supported INI File Structure"
 | 
				
			||||||
[2]: <https://docs.python.org/3/library/configparser.html#configparser.BasicInterpolation> "BasicInterpolation"
 | 
					[2]: <https://docs.python.org/3/library/configparser.html#interpolation-of-values> "Interpolation of values"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## The `DEFAULT` section
 | 
					## The `DEFAULT` section
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								LICENSE
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								LICENSE
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
Copyright 2019-2020 Garmelon, I-Al-Istannen, danstooamerican, pavelzw, TheChristophe, Scriptim
 | 
					Copyright 2019-2021 Garmelon, I-Al-Istannen, danstooamerican, pavelzw, TheChristophe, Scriptim, thelukasprobst
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
					Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
				
			||||||
this software and associated documentation files (the "Software"), to deal in
 | 
					this software and associated documentation files (the "Software"), to deal in
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,7 +15,7 @@ from .transformer import RuleParseError
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
def load_config_parser(args: argparse.Namespace) -> configparser.ConfigParser:
 | 
					def load_config_parser(args: argparse.Namespace) -> configparser.ConfigParser:
 | 
				
			||||||
    log.explain_topic("Loading config")
 | 
					    log.explain_topic("Loading config")
 | 
				
			||||||
    parser = configparser.ConfigParser()
 | 
					    parser = configparser.ConfigParser(interpolation=None)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if args.command is None:
 | 
					    if args.command is None:
 | 
				
			||||||
        log.explain("No CLI command specified, loading config from file")
 | 
					        log.explain("No CLI command specified, loading config from file")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user