diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2013-02-15 21:47:27 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2013-02-15 21:47:27 +0100 |
commit | d25a639a5602ff4bfa151a44c2c6116709ee53b0 (patch) | |
tree | 479853f0889072d2eb1c9b0b5a66a04c9b2de4ac /Cython/Compiler/ModuleNode.py | |
parent | 9fcaef134fbaa7ad2a1d92a6281db8c1fcda0010 (diff) | |
download | cython-d25a639a5602ff4bfa151a44c2c6116709ee53b0.tar.gz |
remove useless semicolons in Python code
--HG--
extra : rebase_source : cf2a0d87f2f903179cc954ff092c79fef7b13a34
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 913e95448..a14b19f6b 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1073,7 +1073,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): for entry in cpp_class_attrs: code.putln("new((void*)&(p->%s)) %s();" % - (entry.cname, entry.type.declaration_code(""))); + (entry.cname, entry.type.declaration_code(""))) for entry in py_attrs: if scope.is_internal or entry.name == "__weakref__": @@ -1100,7 +1100,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln( "if (%s(%s) < 0) {" % (new_func_entry.func_cname, cinit_args)) - code.put_decref_clear("o", py_object_type, nanny=False); + code.put_decref_clear("o", py_object_type, nanny=False) code.putln( "}") code.putln( @@ -1133,7 +1133,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): # We must mark ths object as (gc) untracked while tearing it down, lest # the garbage collection is invoked while running this destructor. if scope.needs_gc(): - code.putln("PyObject_GC_UnTrack(o);"); + code.putln("PyObject_GC_UnTrack(o);") # call the user's __dealloc__ self.generate_usr_dealloc_call(scope, code) @@ -1161,7 +1161,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): # The base class deallocator probably expects this to be tracked, so # undo the untracking above. if scope.needs_gc(): - code.putln("PyObject_GC_Track(o);"); + code.putln("PyObject_GC_Track(o);") if base_type: tp_dealloc = TypeSlots.get_base_slot_function(scope, tp_slot) @@ -1857,8 +1857,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): env.use_utility_code(UtilityCode.load("CheckBinaryVersion", "ModuleSetupCode.c")) code.putln("if ( __Pyx_check_binary_version() < 0) %s" % code.error_goto(self.pos)) - code.putln("%s = PyTuple_New(0); %s" % (Naming.empty_tuple, code.error_goto_if_null(Naming.empty_tuple, self.pos))); - code.putln("%s = PyBytes_FromStringAndSize(\"\", 0); %s" % (Naming.empty_bytes, code.error_goto_if_null(Naming.empty_bytes, self.pos))); + code.putln("%s = PyTuple_New(0); %s" % (Naming.empty_tuple, code.error_goto_if_null(Naming.empty_tuple, self.pos))) + code.putln("%s = PyBytes_FromStringAndSize(\"\", 0); %s" % (Naming.empty_bytes, code.error_goto_if_null(Naming.empty_bytes, self.pos))) code.putln("#ifdef __Pyx_CyFunction_USED") code.putln("if (__Pyx_CyFunction_init() < 0) %s" % code.error_goto(self.pos)) |