remove prefix from config

This commit is contained in:
Maximilian Keßler 2022-02-06 18:39:14 +01:00
parent 1094fce0a4
commit 94516b4bbb
2 changed files with 1 additions and 16 deletions

View file

@ -3,3 +3,4 @@ INFILE_CONFIG_END_CONFIG = 'endconfig'
PYTEX_CONFIG_FILE_EXTENSION = '.conf' PYTEX_CONFIG_FILE_EXTENSION = '.conf'
DICTIONARY_KEY_COLUMN_NAME = 'key' DICTIONARY_KEY_COLUMN_NAME = 'key'
DICTIONARY_NAMING_PATTERN = 'translator-{dict_name}-dictionary-{language}.dict' DICTIONARY_NAMING_PATTERN = 'translator-{dict_name}-dictionary-{language}.dict'
FORMATTER_PREFIX = '!'

View file

@ -31,8 +31,6 @@ class FormattingConfig(Config):
self._include_ins: Optional[bool] = True self._include_ins: Optional[bool] = True
self._use_docstrip_guards: Optional[List[str]] = None self._use_docstrip_guards: Optional[List[str]] = None
self._escape_character: Optional[str] = None
@classmethod @classmethod
def from_yaml(cls, yaml): def from_yaml(cls, yaml):
pass pass
@ -136,13 +134,6 @@ class FormattingConfig(Config):
else: else:
return self._version return self._version
@property
def extra_header_file(self) -> GenericText:
if self._extra_header_file is None:
return GenericText([])
else:
return self._extra_header_file
@property @property
def pytex_version(self) -> Optional[GitVersionInfo]: def pytex_version(self) -> Optional[GitVersionInfo]:
return self._pytex_version return self._pytex_version
@ -189,13 +180,6 @@ class FormattingConfig(Config):
else: else:
return self._use_docstrip_guards return self._use_docstrip_guards
@property
def escape_character(self) -> str:
if self._escape_character is None:
return '!'
else:
return self._escape_character
@property @property
def description(self) -> str: def description(self) -> str:
if self._description is None: if self._description is None: