Skip to content

Commit fa770e8

Browse files
committed
Remove unnecessary parentheses
1 parent a10c846 commit fa770e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/rime_init

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ atcoder_config(
9393
'''.format(rime_plus_version)
9494
make_file('PROJECT', content)
9595

96-
if (isgit):
96+
if isgit:
9797
os.system('git init')
9898
os.system('git add PROJECT .gitignore common/testlib.h')
9999
os.system('git commit -m "Initial commit"')

rime/plugins/plus/commands.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def Add(self, args, ui):
110110
)
111111
'''
112112
newdir = os.path.join(self.base_dir, name)
113-
if (os.path.exists(newdir)):
113+
if os.path.exists(newdir):
114114
ui.errors.Error(self, "{0} already exists.".format(newdir))
115115
yield None
116116
os.makedirs(newdir)
@@ -193,7 +193,7 @@ def Add(self, args, ui):
193193
#expected_score(100)
194194
'''
195195
newdir = os.path.join(self.base_dir, name)
196-
if (os.path.exists(newdir)):
196+
if os.path.exists(newdir):
197197
ui.errors.Error(self, "{0} already exists.".format(newdir))
198198
yield None
199199
os.makedirs(newdir)
@@ -252,7 +252,7 @@ def Add(self, args, ui):
252252
#scoring_judge()
253253
'''
254254
newdir = os.path.join(self.base_dir, name)
255-
if (os.path.exists(newdir)):
255+
if os.path.exists(newdir):
256256
ui.errors.Error(self, "{0} already exists.".format(newdir))
257257
yield None
258258
os.makedirs(newdir)

0 commit comments

Comments
 (0)