blueloveTH 2 vuotta sitten
vanhempi
commit
ec0290ab39
2 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 3 1
      python/builtins.py
  2. 2 1
      tests/41_exception.py

+ 3 - 1
python/builtins.py

@@ -256,8 +256,10 @@ def help(obj):
     print(obj.__signature__)
     print(obj.__doc__)
 
+
 class Exception: pass
 
+
 class classmethod:
     def __init__(self, f):
         self.f = f
@@ -266,4 +268,4 @@ class classmethod:
 def staticmethod(f):
     return f
 
-from _long import long
+from _long import long

+ 2 - 1
tests/41_exception.py

@@ -97,4 +97,5 @@ except Exception as e:
     assert str(e) == '2'
     assert repr(e).startswith('KeyError(')
 except:
-    exit(1)
+    exit(1)
+