[Python-checkins] peps: pep-426: properly escape backslashes

daniel.holth python-checkins at python.org
Sun Jun 23 01:17:33 CEST 2013


http://hg.python.org/peps/rev/ab7f630d4865
changeset:   4956:ab7f630d4865
user:        Daniel Holth <dholth at fastmail.fm>
date:        Sat Jun 22 19:17:17 2013 -0400
summary:
  pep-426: properly escape backslashes

files:
  pep-0426/pymeta-schema.json |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/pep-0426/pymeta-schema.json b/pep-0426/pymeta-schema.json
--- a/pep-0426/pymeta-schema.json
+++ b/pep-0426/pymeta-schema.json
@@ -7,7 +7,7 @@
     "metadata_version": {
       "description": "Version of the file format",
       "type": "string",
-      "pattern": "^(\d+(\.\d+)*)$"
+      "pattern": "^(\\d+(\\.\\d+)*)$"
     },
     "name": {
       "description": "The name of the distribution.",
@@ -17,7 +17,7 @@
     "version": {
       "description": "The distribution's public version identifier",
       "type": "string",
-      "pattern": "^(\d+(\.\d+)*)((a|b|c|rc)(\d+))?(\.(post)(\d+))?(\.(dev)(\d+))?$"
+      "pattern": "^(\\d+(\\.\\d+)*)((a|b|c|rc)(\\d+))?(\\.(post)(\\d+))?(\\.(dev)(\\d+))?$"
     },
     "source_label": {
       "description": "A constrained identifying text string",

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list