Skip to content

Commit f216f1b

Browse files
committed
Fixed code standard
1 parent e9fb759 commit f216f1b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cyaron/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def output_gen(self, shell_cmd):
117117
self.output_file.write(subprocess.check_output(shell_cmd, shell=True, stdin=f).decode('ascii'))
118118

119119
self.input_file = open(self.input_filename, 'a')
120-
print(self.output_filename," done")
120+
print(self.output_filename, " done")
121121

122122
def output_write(self, *args, **kwargs):
123123
"""output_write(self, *args, **kwargs) -> None

cyaron/polygon.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import random
44
import math
55

6+
67
class Polygon:
78
def __init__(self,points=[]):
89
if not list_like(points):

examples/test_bzoj2152.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/usr/bin/env python
22

33
from cyaron import *
4-
def oper(x):
5-
return "%d %d %d" % (x.start, x.end, x.weight)
64

75
_n = ati([0,10,1e2,5e2,1e3,2e3,3e3,5e3,1e4,2e4,2e4])
86

@@ -12,7 +10,7 @@ def oper(x):
1210

1311
t=Graph.tree(n,0.3,0.4,weight_limit=n)
1412
test_data.input_writeln(n)
15-
test_data.input_writeln(t.to_str(output=oper))
13+
test_data.input_writeln(t)
1614

1715
test_data.output_gen("dr.exe")
1816

0 commit comments

Comments
 (0)