Skip to content

Commit a345354

Browse files
committed
more black updates
1 parent a5d2e3c commit a345354

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

docs/source/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
master_doc = "index"
4444

4545
# General information about the project.
46-
project = u"sc2reader"
47-
copyright = u"2011-2013"
46+
project = "sc2reader"
47+
copyright = "2011-2013"
4848

4949
# The version info for the project you're documenting, acts as replacement for
5050
# |version| and |release|, also used in various other places throughout the
@@ -182,7 +182,7 @@
182182
# Grouping the document tree into LaTeX files. List of tuples
183183
# (source start file, target name, title, author, documentclass [howto/manual]).
184184
latex_documents = [
185-
("index", "sc2reader.tex", u"sc2reader Documentation", u"Graylin Kim", "manual")
185+
("index", "sc2reader.tex", "sc2reader Documentation", "Graylin Kim", "manual")
186186
]
187187

188188
# The name of an image file (relative to this directory) to place at the top of
@@ -213,4 +213,4 @@
213213

214214
# One entry per manual page. List of tuples
215215
# (source start file, name, description, authors, manual section).
216-
man_pages = [("index", "sc2reader", u"sc2reader Documentation", [u"Graylin Kim"], 1)]
216+
man_pages = [("index", "sc2reader", "sc2reader Documentation", ["Graylin Kim"], 1)]

sc2reader/engine/plugins/creeptracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def radius_to_map_positions(self, radius):
173173
# Sample a square area using the radius
174174
for x in range(-radius, radius):
175175
for y in range(-radius, radius):
176-
if (x ** 2 + y ** 2) <= (radius * radius):
176+
if (x**2 + y**2) <= (radius * radius):
177177
output_coordinates.append((x, y))
178178
return output_coordinates
179179

sc2reader/events/tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class TrackerEvent(Event):
1717
def __init__(self, frames):
1818
#: The frame of the game this event was applied
1919
#: Ignore all but the lowest 32 bits of the frame
20-
self.frame = frames % 2 ** 32
20+
self.frame = frames % 2**32
2121

2222
#: The second of the game (game time not real time) this event was applied
2323
self.second = self.frame >> 4

sc2reader/readers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def __call__(self, data, replay):
561561
)
562562

563563
# Don't want to do this more than once
564-
SINGLE_BIT_MASKS = [0x1 << i for i in range(2 ** 9)]
564+
SINGLE_BIT_MASKS = [0x1 << i for i in range(2**9)]
565565

566566
def read_selection_bitmask(self, data, mask_length):
567567
bits_left = mask_length

sc2reader/resources.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,11 @@ def load_details(self):
421421
# the value required to get the adjusted timestamp. We know the upper
422422
# limit for any adjustment number so use that to distinguish between
423423
# the two cases.
424-
if details["utc_adjustment"] < 10 ** 7 * 60 * 60 * 24:
425-
self.time_zone = details["utc_adjustment"] / (10 ** 7 * 60 * 60)
424+
if details["utc_adjustment"] < 10**7 * 60 * 60 * 24:
425+
self.time_zone = details["utc_adjustment"] / (10**7 * 60 * 60)
426426
else:
427427
self.time_zone = (details["utc_adjustment"] - details["file_time"]) / (
428-
10 ** 7 * 60 * 60
428+
10**7 * 60 * 60
429429
)
430430

431431
self.game_length = self.length

sc2reader/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def windows_to_unix(windows_time):
4545
# This windows timestamp measures the number of 100 nanosecond periods since
4646
# January 1st, 1601. First we subtract the number of nanosecond periods from
4747
# 1601-1970, then we divide by 10^7 to bring it back to seconds.
48-
return int((windows_time - 116444735995904000) / 10 ** 7)
48+
return int((windows_time - 116444735995904000) / 10**7)
4949

5050

5151
@loggable

0 commit comments

Comments
 (0)