Skip to content

Commit fee9601

Browse files
committed
Updated to v19.1
1 parent 07553d7 commit fee9601

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Aspose.PDF Cloud API Reference
55
66
7-
Copyright (c) 2018 Aspose.PDF Cloud
7+
Copyright (c) 2019 Aspose.PDF Cloud
88
Permission is hereby granted, free of charge, to any person obtaining a copy
99
of this software and associated documentation files (the "Software"), to deal
1010
in the Software without restriction, including without limitation the rights

asposepdfcloud/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,9 +682,9 @@ def __deserialize_date(self, string):
682682
)
683683

684684
def __deserialize_datatime(self, string):
685-
match = re.match(r"/Date\((\d+?)000\+0000\)/", string)
685+
match = re.match(r'/Date\((\d+?)000\+0000\)/', string, flags=re.UNICODE)
686686
if match:
687-
dt = datetime.utcfromtimestamp(int(match[1]))
687+
dt = datetime.utcfromtimestamp(int(match.group(1)))
688688
return dt
689689
else:
690690
return None

test/pdf_tests.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Aspose.PDF Cloud API Reference
55
66
7-
Copyright (c) 2018 Aspose.PDF Cloud
7+
Copyright (c) 2019 Aspose.PDF Cloud
88
Permission is hereby granted, free of charge, to any person obtaining a copy
99
of this software and associated documentation files (the "Software"), to deal
1010
in the Software without restriction, including without limitation the rights
@@ -66,7 +66,6 @@ def uploadFile(self, name):
6666

6767
def tearDown(self):
6868
pass
69-
7069

7170
# Annotations Tests
7271

@@ -3839,7 +3838,6 @@ def testGetDiscUsage(self):
38393838
response = self.pdf_api.get_disc_usage()
38403839
self.assertEqual(response.code, 200)
38413840

3842-
38433841
def testGetListFileVersion(self):
38443842
file_name = '4pages.pdf'
38453843
self.uploadFile(file_name)

0 commit comments

Comments
 (0)