File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5454 "LatitudeFormatter" ,
5555]
5656
57- REGEX_ZERO = re .compile ("\\ A[-\\ N{MINUS SIGN}]?0(.0*)?\\ Z" )
58- REGEX_MINUS = re .compile ("\\ A[-\\ \ N{MINUS SIGN} ]\\ Z" )
59- REGEX_MINUS_ZERO = re .compile ("\\ A[-\\ N{MINUS SIGN}]0(.0*)?\\ Z" )
57+ REGEX_ZERO = re .compile ("\\ A[-\N{MINUS SIGN} ]?0(.0*)?\\ Z" )
58+ REGEX_MINUS = re .compile ("\\ A[-\N{MINUS SIGN} ]\\ Z" )
59+ REGEX_MINUS_ZERO = re .compile ("\\ A[-\N{MINUS SIGN} ]0(.0*)?\\ Z" )
6060
6161_precision_docstring = """
6262precision : int, default: {6, 2}
@@ -540,7 +540,7 @@ def _minus_format(string):
540540 Format the minus sign and avoid "negative zero," e.g. ``-0.000``.
541541 """
542542 if rc ["axes.unicode_minus" ] and not rc ["text.usetex" ]:
543- string = string .replace ("-" , "\\ N{MINUS SIGN}" )
543+ string = string .replace ("-" , "\N{MINUS SIGN} " )
544544 if REGEX_MINUS_ZERO .match (string ):
545545 string = string [1 :]
546546 return string
You can’t perform that action at this time.
0 commit comments