summaryrefslogtreecommitdiff
path: root/modules/language/python/module
diff options
context:
space:
mode:
authorStefan Israelsson Tampe <stefan.itampe@gmail.com>2019-03-13 09:35:32 +0100
committerStefan Israelsson Tampe <stefan.itampe@gmail.com>2019-03-13 09:35:32 +0100
commita74c01d3666562bec3f4f05bcc56f26c38b14a7a (patch)
tree850d0b343cef57b7403b11d3747996d4708b41a5 /modules/language/python/module
parent6b0070bb5c37b118eb09c1ec023999bbdf1781e7 (diff)
remove warnings, fix wrong compilation order
Diffstat (limited to 'modules/language/python/module')
-rw-r--r--modules/language/python/module/errno.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/language/python/module/errno.scm b/modules/language/python/module/errno.scm
index 1b1a508..3720235 100644
--- a/modules/language/python/module/errno.scm
+++ b/modules/language/python/module/errno.scm
@@ -21,9 +21,10 @@
(define-syntax-rule (mk x n)
(begin
(if (defined? 'x)
- (define! 'x x)
- (define! 'x n))
- (export x)
+ (re-export x)
+ (begin
+ (define! 'x n)
+ (export x)))
(pylist-set! errorcode n (symbol->string 'x))))
(mk EPERM 1)