Skip to content

Commit

Permalink
Merge pull request #67 from takkii/develop
Browse files Browse the repository at this point in the history
Update.
  • Loading branch information
takkii authored Feb 13, 2024
2 parents dae04ea + 73c17ee commit 4b0d6dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pake.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
py_mj: Optional[int] = sys.version_info[0]
py_mi: Optional[int] = sys.version_info[1]

# 3.5 or higher and 4.x or less python version is required.
if (py_mj < 4) and (py_mj == 3 and py_mi > 4):
# 3.5 and higher, 4.x or less,python version is required.
if (py_mj == 3 and py_mi > 4) or (py_mj < 4):
print('--------------------------------------------------------------')

# Run, unit/timestamp.py
Expand Down
11 changes: 7 additions & 4 deletions rplugin/python3/deoplete/sources/go_straight.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ def __init__(self, vim):
self.name: Optional[str] = 'go_straight'
self.filetypes: Optional[list] = ['ruby']
mark_synbol: Optional[list] = [
'[GST]', '[Go_Straight]', 'GST', 'Go_Straight',
'[GST]',
'[Go_Straight]',
'GST',
'Go_Straight',
]
self.mark: Optional[str] = str(random.choice(mark_synbol))
ruby_match: Optional[list] = [r'\.[a-zA-Z0-9_?!]*|[a-zA-Z]\w*::\w*']
Expand All @@ -43,8 +46,8 @@ def gather_candidates(self, context):
py_mj: Optional[int] = sys.version_info[0]
py_mi: Optional[int] = sys.version_info[1]

# 3.5 or higher and 4.x or less python version is required.
if (py_mj < 4) and (py_mj == 3 and py_mi > 4):
# 3.5 and higher, 4.x or less,python version is required.
if (py_mj == 3 and py_mi > 4) or (py_mj < 4):

# Settings, Config path is true/false change.
config_load: Optional[str] = '~/config/load.yml'
Expand Down Expand Up @@ -79,7 +82,7 @@ def gather_candidates(self, context):

# Python_VERSION: 3.5 or higher and 4.x or less.
else:
raise ValueError("VERSION: 3.5 or higher and 4.x or less")
raise ValueError("VERSION: 3.5 and higher, 4.x or less")

# TraceBack.
except Exception:
Expand Down

0 comments on commit 4b0d6dc

Please sign in to comment.