OSDN Git Service

minor cleanup
authorSimon Forman <sforman@hushmail.com>
Sun, 11 Sep 2022 16:33:50 +0000 (09:33 -0700)
committerSimon Forman <sforman@hushmail.com>
Sun, 11 Sep 2022 16:33:50 +0000 (09:33 -0700)
implementations/Python/simplejoy.py

index d751d3b..bf28af1 100755 (executable)
@@ -317,6 +317,10 @@ def joy(stack, expression, dictionary):
     return stack, dictionary
 
 
+class UnknownSymbolError(KeyError):
+    pass
+
+
 '''
 ███████╗████████╗ █████╗  ██████╗██╗  ██╗
 ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██║ ██╔╝
@@ -1287,10 +1291,6 @@ class NotABoolError(Exception):
     pass
 
 
-class UnknownSymbolError(KeyError):
-    pass
-
-
 def isnt_int(i):
     '''
     Raise NotAnIntError if i isn't an integer.