Skip to content

Commit

Permalink
python3 support: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit Renker authored and Gerrit Renker committed Jan 15, 2020
1 parent 08a4a71 commit a0e1825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This repository contains a *Python SDK* and a command line interface *CLI* (base
## Installing

### Via Python's pip
Cross-platform installation is available via pypi. Requires *Python 2.7* - this is not currently compatible with Python 3.
Cross-platform installation is available via pypi.
If you have pip already installed the following command will get you running:
```
> pip install clc-sdk
Expand Down
3 changes: 1 addition & 2 deletions src/clc/APIv2/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
# TODO - Servers search by custom field

import re
import math
import json
import time
import clc
Expand Down Expand Up @@ -204,7 +203,7 @@ def Refresh(self):
self.data['changeInfo']['modifiedDate'] = clc.v2.time_utils.ZuluTSToSeconds(self.data['changeInfo']['modifiedDate'])

# API call switches between GB and MB. Change to all references are in GB and we drop the units
self.data['details']['memoryGB'] = int(math.floor(self.data['details']['memoryMB'] // 1024))
self.data['details']['memoryGB'] = self.data['details']['memoryMB'] // 1024
except:
pass

Expand Down

0 comments on commit a0e1825

Please sign in to comment.