Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #295 from chrisburr/absolute-imports
Browse files Browse the repository at this point in the history
Add from __future__ import absolute_import
  • Loading branch information
jpivarski committed Jun 25, 2019
2 parents 349b3d8 + b78652b commit 358dfa5
Show file tree
Hide file tree
Showing 39 changed files with 77 additions and 1 deletion.
2 changes: 2 additions & 0 deletions uproot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@
The same procedure sets options for uproot.XRootDSource and uproot.HTTPSource.
"""

from __future__ import absolute_import

# high-level entry points
from uproot.rootio import open, xrootd, http
from uproot.tree import iterate, numentries, lazyarray, lazyarrays, daskarray, daskframe
Expand Down
2 changes: 2 additions & 0 deletions uproot/_connect/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import
2 changes: 2 additions & 0 deletions uproot/_connect/_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import itertools
import functools
import operator
Expand Down
2 changes: 2 additions & 0 deletions uproot/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import uproot
import uproot._connect._pandas

Expand Down
2 changes: 2 additions & 0 deletions uproot/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import math
import threading
try:
Expand Down
1 change: 1 addition & 0 deletions uproot/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

"""ROOT constants used in deserialization."""
from __future__ import absolute_import

import numpy

Expand Down
2 changes: 2 additions & 0 deletions uproot/interp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import
2 changes: 2 additions & 0 deletions uproot/interp/auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import copy
import re
import ast
Expand Down
2 changes: 2 additions & 0 deletions uproot/interp/interp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import awkward

class Interpretation(object):
Expand Down
2 changes: 2 additions & 0 deletions uproot/interp/jagged.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import math

import uproot.interp.interp
Expand Down
2 changes: 2 additions & 0 deletions uproot/interp/numerical.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import sys
import numbers
import math
Expand Down
2 changes: 2 additions & 0 deletions uproot/interp/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import copy
import struct

Expand Down
1 change: 1 addition & 0 deletions uproot/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

"""Top-level functions for Pandas."""
from __future__ import absolute_import

import uproot.tree
from uproot.source.memmap import MemmapSource
Expand Down
2 changes: 2 additions & 0 deletions uproot/rootio.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import keyword
import numbers
import os
Expand Down
2 changes: 2 additions & 0 deletions uproot/source/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import
2 changes: 2 additions & 0 deletions uproot/source/chunked.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import math

import numpy
Expand Down
2 changes: 2 additions & 0 deletions uproot/source/compressed.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import struct

import numpy
Expand Down
2 changes: 2 additions & 0 deletions uproot/source/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import struct
import string

Expand Down
2 changes: 2 additions & 0 deletions uproot/source/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import multiprocessing
import os.path
import sys
Expand Down
2 changes: 2 additions & 0 deletions uproot/source/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import os.path
import re
import multiprocessing
Expand Down
2 changes: 2 additions & 0 deletions uproot/source/memmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import os.path

import numpy
Expand Down
2 changes: 2 additions & 0 deletions uproot/source/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import numpy

class Source(object):
Expand Down
2 changes: 2 additions & 0 deletions uproot/source/xrootd.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import os
import threading

Expand Down
2 changes: 2 additions & 0 deletions uproot/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import base64
import codecs
import glob
Expand Down
4 changes: 3 additions & 1 deletion uproot/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import re

__version__ = "3.7.1"
__version__ = "3.7.2"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__))

Expand Down
2 changes: 2 additions & 0 deletions uproot/write/TDirectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import collections
import struct
import uuid
Expand Down
2 changes: 2 additions & 0 deletions uproot/write/TFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import os
import sys
import struct
Expand Down
2 changes: 2 additions & 0 deletions uproot/write/TFree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import math
import struct

Expand Down
2 changes: 2 additions & 0 deletions uproot/write/TKey.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import struct

import uproot.write.sink.cursor
Expand Down
2 changes: 2 additions & 0 deletions uproot/write/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import
2 changes: 2 additions & 0 deletions uproot/write/compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import numbers
import struct

Expand Down
2 changes: 2 additions & 0 deletions uproot/write/objects/TH.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import struct

import numpy
Expand Down
2 changes: 2 additions & 0 deletions uproot/write/objects/TObjString.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import struct

import numpy
Expand Down
2 changes: 2 additions & 0 deletions uproot/write/objects/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import
2 changes: 2 additions & 0 deletions uproot/write/sink/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import
2 changes: 2 additions & 0 deletions uproot/write/sink/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import struct

class Cursor(object):
Expand Down
2 changes: 2 additions & 0 deletions uproot/write/sink/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

class Sink(object):
pass

Expand Down
2 changes: 2 additions & 0 deletions uproot/write/streamers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

# just TObjString (for debugging)
# streamers = b'@\x00\x01n\x00\x05\x00\x01\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x01@\x00\x01X\xff\xff\xff\xffTStreamerInfo\x00@\x00\x01B\x00\t@\x00\x00\x18\x00\x01\x00\x01\x00\x00\x00\x00\x03\x01\x00\x00\nTObjString\x00\x9c\x8eH\x00\x00\x00\x00\x01@\x00\x01\x18\xff\xff\xff\xffTObjArray\x00@\x00\x01\x06\x00\x03\x00\x01\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00@\x00\x00u\xff\xff\xff\xffTStreamerBase\x00@\x00\x00_\x00\x03@\x00\x00U\x00\x04@\x00\x00&\x00\x01\x00\x01\x00\x00\x00\x00\x03\x00\x00\x00\x07TObject\x11Basic ROOT object\x00\x00\x00B\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x90\x1b\xc0-\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04BASE\x00\x00\x00\x01@\x00\x00t\xff\xff\xff\xffTStreamerString\x00@\x00\x00\\\x00\x02@\x00\x00V\x00\x04@\x00\x00$\x00\x01\x00\x01\x00\x00\x00\x00\x03\x00\x00\x00\x07fString\x0fwrapped TString\x00\x00\x00A\x00\x00\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07TString\x00'

Expand Down
2 changes: 2 additions & 0 deletions uproot/write/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot/blob/master/LICENSE

from __future__ import absolute_import

import datetime

def datime(when=None):
Expand Down

0 comments on commit 358dfa5

Please sign in to comment.