[前][次][番号順一覧][スレッド一覧]

ruby-changes:54226

From: kazu <ko1@a...>
Date: Wed, 19 Dec 2018 08:37:11 +0900 (JST)
Subject: [ruby-changes:54226] kazu:r66447 (trunk): sample/fib.py: Fix syntax error in Python 3 [ci skip]

kazu	2018-12-19 08:36:47 +0900 (Wed, 19 Dec 2018)

  New Revision: 66447

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66447

  Log:
    sample/fib.py: Fix syntax error in Python 3 [ci skip]

  Modified files:
    trunk/sample/fib.py
Index: sample/fib.py
===================================================================
--- sample/fib.py	(revision 66446)
+++ sample/fib.py	(revision 66447)
@@ -6,5 +6,5 @@ def fib(n): https://github.com/ruby/ruby/blob/trunk/sample/fib.py#L6
   else:
     return fib(n-2)+fib(n-1)
 
-print fib(20)
+print(fib(20))
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]