Skip to content

Commit

Permalink
add to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
andreea-popescu-reef committed Mar 15, 2024
1 parent e4eeefd commit 7cbe450
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion b2sdk/v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from b2sdk._v3 import parse_folder as parse_sync_folder
from b2sdk._v3 import AbstractPath as AbstractSyncPath
from b2sdk._v3 import LocalPath as LocalSyncPath
from b2sdk.utils.escape import unprintable_to_hex, escape_control_chars, substitute_control_chars

from .account_info import AbstractAccountInfo
from .api import B2Api
Expand Down Expand Up @@ -45,4 +46,4 @@
# large_file

from .large_file import LargeFileServices
from .large_file import UnfinishedLargeFile
from .large_file import UnfinishedLargeFile
3 changes: 3 additions & 0 deletions b2sdk/v2/raw_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ def get_upload_file_headers(
**kwargs,
)

def unprintable_to_hex(self, s):
return v3.unprintable_to_hex(s)

@_file_infos_rename
def upload_file(
self,
Expand Down

0 comments on commit 7cbe450

Please sign in to comment.