From 79caaa5a0b025ab18462667f1b6bf3fe14a9ebe9 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 5 Apr 2019 19:19:55 +1300 Subject: [PATCH] Move PSF-LICENSE and add Lib README.md --- PSF-LICENSE => Lib/PSF-LICENSE | 0 Lib/README.md | 10 ++++++++++ Lib/re.py | 11 ----------- 3 files changed, 10 insertions(+), 11 deletions(-) rename PSF-LICENSE => Lib/PSF-LICENSE (100%) create mode 100644 Lib/README.md delete mode 100644 Lib/re.py diff --git a/PSF-LICENSE b/Lib/PSF-LICENSE similarity index 100% rename from PSF-LICENSE rename to Lib/PSF-LICENSE diff --git a/Lib/README.md b/Lib/README.md new file mode 100644 index 000000000..b3aade7bf --- /dev/null +++ b/Lib/README.md @@ -0,0 +1,10 @@ +Standard Library for RustPython +=============================== + +This directory contains all of the Python files that make up the standard library for RustPython. + +Most of these files are copied over from the CPython repository(the 3.7 branch), with slight modifications to allow them +to work under RustPython. The current goal is to complete the standard library with as few modifications as possible. +Current modifications are just temporary workarounds for bugs/missing feature within the RustPython implementation. + +The first target is to run the ``unittest`` module, so we can leverage the CPython test suite. diff --git a/Lib/re.py b/Lib/re.py deleted file mode 100644 index 8511222be..000000000 --- a/Lib/re.py +++ /dev/null @@ -1,11 +0,0 @@ - -""" Regular expressions """ - - -def match(pattern, string, flags=0): - return _compile(pattern, flags).match(string) - - -def _compile(pattern, flags): - p = sre_compile.compile(pattern, flags) - return p