@@ -1464,11 +1464,7 @@ private enum PythonFileMode {
 
         // Map a python mode string into a PythonFileMode.
         private static PythonFileMode MapFileMode(String mode) {
-
-            // Do not allow p
-            if (mode.Contains("p"))
-                throw PythonOps.ValueError("Invalid mode ('rbp')");
-
+            
             // Assume "mode" is in reasonable good shape, since we checked it in "Make"
             if (mode.Contains("b"))
                 return PythonFileMode.Binary;