Skip to content

Commit 4f5aa7b

Browse files
committed
journal: allow numbers in field identifiers
1 parent bbbc6e8 commit 4f5aa7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

systemd/journal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ def _convert_uuid(s):
100100
'COREDUMP_TIMESTAMP': _convert_timestamp,
101101
}
102102

103-
_IDENT_LETTER = set('ABCDEFGHIJKLMNOPQRTSUVWXYZ_')
103+
_IDENT_CHARACTER = set('ABCDEFGHIJKLMNOPQRTSUVWXYZ_0123456789')
104104

105105
def _valid_field_name(s):
106-
return not (set(s) - _IDENT_LETTER)
106+
return not (set(s) - _IDENT_CHARACTER)
107107

108108
class Reader(_Reader):
109109
"""Reader allows the access and filtering of systemd journal

0 commit comments

Comments
 (0)