Skip to content

Commit

Permalink
address code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
yedpodtrzitko committed Jun 19, 2023
1 parent 64f2782 commit e75b19b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ jobs:
tags: backblaze/b2:${{ steps.build.outputs.version }}

debian-release:
if: ${{ vars.B2_DEBIAN_BUCKET_UPLOAD_MISSING }}
name: Build Debian Package
uses: ./.github/workflows/cd_debian.yml
secrets: inherit
Expand Down
10 changes: 8 additions & 2 deletions b2/arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@
def rst2ansi(input_string, output_encoding='utf-8'):
"""Dummy replacement of rst2ansi which is not available in Debian."""
if isinstance(input_string, bytes):
return input_string.decode(output_encoding)
return input_string
input_string = input_string.decode(output_encoding)

# remove double backticks
stripped = input_string.replace('``', '')
# remove code-block directive
stripped = stripped.replace('.. code-block::', '')

return stripped


_arrow_version = tuple(int(p) for p in arrow.__version__.split("."))
Expand Down

0 comments on commit e75b19b

Please sign in to comment.