lbalhar / rpms / Cython

Forked from rpms/Cython 4 years ago
Clone
Blob Blame History Raw
From 3526e08741c05dd122ffe827d9d8b5864a3436f5 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Wed, 21 Dec 2016 14:31:08 +0100
Subject: [PATCH] fix typo in Compiler/Options.py

Reported-by: Paulo Andrade <paulo.cesar.pereira.de.andrade@gmail.com>
References: https://bugzilla.redhat.com/show_bug.cgi?id=1406533
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
---
 Cython/Compiler/Options.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Cython/Compiler/Options.py b/Cython/Compiler/Options.py
index ddafa202a..893dab23f 100644
--- a/Cython/Compiler/Options.py
+++ b/Cython/Compiler/Options.py
@@ -8,10 +8,10 @@ class ShouldBeFromDirective(object):
 
     known_directives = []
 
-    def __init__(self, options_name, directive_name=None, dissallow=False):
+    def __init__(self, options_name, directive_name=None, disallow=False):
         self.options_name = options_name
         self.directive_name = directive_name or options_name
-        self.dissallow = dissallow
+        self.disallow = disallow
         self.known_directives.append(self)
 
     def __nonzero__(self):
-- 
2.11.0