Skip to content

Commit 53e87fc

Browse files
authored
Merge pull request #9662 from mhvk/units-format-generic-fix
Fix generation of units parser/lexer tables.
2 parents 5d9b483 + d0ed867 commit 53e87fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

astropy/units/format/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def t_FUNCNAME(t):
161161
return t
162162

163163
def t_UNIT(t):
164-
"%|([YZEPTGMkhdcmu\N{MICRO SIGN}npfazy]?"+r"'((?!\d)\w)+')|((?!\d)\w)+"
164+
"%|([YZEPTGMkhdcmu\N{MICRO SIGN}npfazy]?'((?!\\d)\\w)+')|((?!\\d)\\w)+"
165165
t.value = cls._get_unit(t)
166166
return t
167167

0 commit comments

Comments
 (0)