diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/treeherder/log_parser/failureline.py b/treeherder/log_parser/failureline.py index <HASH>..<HASH> 100644 --- a/treeherder/log_parser/failureline.py +++ b/treeherder/log_parser/failureline.py @@ -81,12 +81,22 @@ def write_failure_lines(job_log, log_iter): create_es(failure_lines) +_failure_line_keys...
Bug <I> - Only store failure_line data from known errorsummary keys (#<I>)
py
diff --git a/test/test_pynmea.py b/test/test_pynmea.py index <HASH>..<HASH> 100644 --- a/test/test_pynmea.py +++ b/test/test_pynmea.py @@ -57,7 +57,7 @@ def test_missing_2(): # $GPGSV,3,2,09,31,42,227,19,32,17,313,20,01,09,316,,11,08,292,*73 # $GPGSV,3,3,09,24,03,046,*47 msg = pynmea2.parse('$GPGSV,3,3...
changed missing value treatment to be more in line with empty fields
py
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index <HASH>..<HASH> 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -3479,7 +3479,8 @@ class Cmd(cmd.Cmd): try: with open(hist_file, 'rb') as fobj: history = pickle.load(fobj) - except (FileNotFoundError, KeyError, EOFError): + ...
Fix a bug discovered during manual testing I found that at least with certain versions of Python and OSes, if I had a previous text-based readline history, an unhandled UnpicklingError exception could occur. So now we catch that and several other possible errors which can theoretically occur during unpickling and jus...
py
diff --git a/pysnmp/smi/mibs/SNMPv2-TM.py b/pysnmp/smi/mibs/SNMPv2-TM.py index <HASH>..<HASH> 100644 --- a/pysnmp/smi/mibs/SNMPv2-TM.py +++ b/pysnmp/smi/mibs/SNMPv2-TM.py @@ -28,8 +28,8 @@ class SnmpUDPAddress(TextualConvention, OctetString): def __getitem__(self, i): if not hasattr(self, '__tuple_value')...
make IPv4 address generator more efficient
py
diff --git a/helpers/traceback.py b/helpers/traceback.py index <HASH>..<HASH> 100644 --- a/helpers/traceback.py +++ b/helpers/traceback.py @@ -26,4 +26,5 @@ def handle_traceback(ex, c, target): trace = traceback.extract_tb(ex.__traceback__)[-1] trace = [basename(trace[0]), trace[1]] name = type(ex).__nam...
hopefully fix crash on multi-line error
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -44,7 +44,6 @@ class TweepyAPITests(unittest.TestCase): # TODO: Actually have some sort of better assertion def testgetoembed(self): - print "testgetoembed" data = self.api.get_oembed(test_tweet_id)...
Remove debugging from tests.py
py
diff --git a/pyecore/valuecontainer.py b/pyecore/valuecontainer.py index <HASH>..<HASH> 100644 --- a/pyecore/valuecontainer.py +++ b/pyecore/valuecontainer.py @@ -1,7 +1,7 @@ from .ecore import EReference, EProxy from .notification import Notification, Kind from .ordered_set_patch import ordered_set -from collection...
Switch from 'collection' to 'collection.abc' for Python <I>
py
diff --git a/src/mousedb/animal/views.py b/src/mousedb/animal/views.py index <HASH>..<HASH> 100644 --- a/src/mousedb/animal/views.py +++ b/src/mousedb/animal/views.py @@ -227,7 +227,7 @@ def date_archive_year(request): """This view will generate a table of the number of mice born on an annual basis. Thi...
filtered out animals with no birth date
py
diff --git a/salt/modules/ps.py b/salt/modules/ps.py index <HASH>..<HASH> 100644 --- a/salt/modules/ps.py +++ b/salt/modules/ps.py @@ -64,7 +64,12 @@ def _get_proc_name(proc): It's backward compatible with < 2.0 versions of psutil. ''' - return proc.name() if PSUTIL2 else proc.name + ret = [] + try...
Fix #<I> by handling psutil exceptions. The information of some processes can't be accessed on Windows when they're run under the 'LOCAL SERVICE' account. This caused exceptions which bubbled up into `ps.pgrep` and caused there backtraces as described in #<I>.
py
diff --git a/kademlia/node.py b/kademlia/node.py index <HASH>..<HASH> 100644 --- a/kademlia/node.py +++ b/kademlia/node.py @@ -94,7 +94,7 @@ class NodeHeap(object): nodes = [nodes] for node in nodes: - if node.id not in [n.id for n in self]: + if node not in self: distan...
added __contains__ method to NodeHeap
py
diff --git a/amazon/api.py b/amazon/api.py index <HASH>..<HASH> 100644 --- a/amazon/api.py +++ b/amazon/api.py @@ -1235,6 +1235,15 @@ class AmazonProduct(LXMLWrapper): """ return self._safe_get_element_text('ItemAttributes.IsAdultProduct') + @property + def product_group(self): + """Pro...
Add support for product group property parsing
py
diff --git a/ford/output.py b/ford/output.py index <HASH>..<HASH> 100644 --- a/ford/output.py +++ b/ford/output.py @@ -249,14 +249,12 @@ class Documentation(object): shutil.copy(src.path, os.path.join(out_dir, "src", src.name)) if "mathjax_config" in self.data: - os.mkdir(os.path....
Don't fail when MathJax-config dir already exists Only create the directory MathJax-config when it doesn't exist yet. Avoids a crash with FileExistsError, which I don't see why it should be fatal.
py
diff --git a/pgcrypto/fields.py b/pgcrypto/fields.py index <HASH>..<HASH> 100644 --- a/pgcrypto/fields.py +++ b/pgcrypto/fields.py @@ -38,7 +38,7 @@ class TextHMACField(HashMixin, models.TextField): TextHMACField.register_lookup(HashLookup) -class EmailPGPPublicKeyField(PGPSymmetricKeyFieldMixin, models.EmailField...
Fix #<I> (#<I>)
py
diff --git a/insights/core/evaluators.py b/insights/core/evaluators.py index <HASH>..<HASH> 100644 --- a/insights/core/evaluators.py +++ b/insights/core/evaluators.py @@ -118,7 +118,7 @@ class SingleEvaluator(Evaluator): class InsightsEvaluator(SingleEvaluator): def __init__(self, broker=None, system_id=None, s...
Change InsightsEvaluator to pass stream along to its superclass during (#<I>) construction. Fixes #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,11 +10,11 @@ setup( license="MIT", platforms=["any"], description="A set of utility modules used by Divmod projects", - classifiers=( + classifiers=[ "Intended Audience :: Developers", ...
deal with the inadequacies of distutils classifiers may not be a sequence of strings. it must be a *list* of strings
py
diff --git a/tornadoes/__init__.py b/tornadoes/__init__.py index <HASH>..<HASH> 100644 --- a/tornadoes/__init__.py +++ b/tornadoes/__init__.py @@ -2,7 +2,7 @@ import json -from models import BulkList +from tornadoes.models import BulkList from urllib import urlencode from tornado.ioloop import IOLoop
Using absolute imports is the way to go, since python3 does not support the old style of importing.
py
diff --git a/demosys/effects/effect.py b/demosys/effects/effect.py index <HASH>..<HASH> 100644 --- a/demosys/effects/effect.py +++ b/demosys/effects/effect.py @@ -44,7 +44,7 @@ class Effect: :param frametime: The number of milliseconds the frame is expected to take :param target: The target FBO for th...
Raise NotImplementedError when draw is not overridden
py
diff --git a/ovp_search/views.py b/ovp_search/views.py index <HASH>..<HASH> 100644 --- a/ovp_search/views.py +++ b/ovp_search/views.py @@ -190,6 +190,7 @@ def get_projects_from_brazil(params): return result +from django.http import HttpResponse @decorators.api_view(["GET"]) def search_projects(request): #pa...
use django's response instead of drf's
py
diff --git a/pmag_gui.py b/pmag_gui.py index <HASH>..<HASH> 100755 --- a/pmag_gui.py +++ b/pmag_gui.py @@ -109,13 +109,13 @@ class MagMainFrame(wx.Frame): self.btn2.SetBackgroundColour("#FDC68A") self.btn2.InitColours() self.Bind(wx.EVT_BUTTON, self.on_orientation_button, self.btn2) - ...
make additional GUI text edits for clarity
py
diff --git a/mt940/tags.py b/mt940/tags.py index <HASH>..<HASH> 100644 --- a/mt940/tags.py +++ b/mt940/tags.py @@ -189,7 +189,7 @@ class TransactionDetails(Tag): ''' id = 86 scope = mt940.models.Transaction - pattern = r'(?P<transaction_details>.{0,330})' + pattern = r'(?P<transaction_details>[\s\S...
Modified regex in TransactionDetails to account for newlines
py
diff --git a/grimoire_elk/enriched/bugzilla.py b/grimoire_elk/enriched/bugzilla.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/enriched/bugzilla.py +++ b/grimoire_elk/enriched/bugzilla.py @@ -78,23 +78,23 @@ class BugzillaEnrich(Enrich): return repo def get_identities(self, item): - ''' Return...
[enrich-bugzilla] Replace list with yield This code replaces the list used in the method `get_identities` with a yield, thus reducing the memory footprint.
py
diff --git a/spec/plugin.py b/spec/plugin.py index <HASH>..<HASH> 100644 --- a/spec/plugin.py +++ b/spec/plugin.py @@ -234,6 +234,14 @@ class OutputStream(_WritelnDecorator): return self.capture_stream.read() +def depth(context): + level = 0 + while hasattr(context, '_parent'): + level += 1 + ...
Nested tests now indent, re #<I>
py
diff --git a/smashrun/client.py b/smashrun/client.py index <HASH>..<HASH> 100644 --- a/smashrun/client.py +++ b/smashrun/client.py @@ -223,7 +223,7 @@ class Smashrun(object): return r def _iter(self, url, count, cls=None, **kwargs): - page = 0 + page = None if count is None else 0 ...
Add the ability to fetch all activities without paging
py
diff --git a/marshmallow/fields.py b/marshmallow/fields.py index <HASH>..<HASH> 100644 --- a/marshmallow/fields.py +++ b/marshmallow/fields.py @@ -625,6 +625,11 @@ class Tuple(Field): row = Tuple((fields.String(), fields.Integer(), fields.Float())) + .. note:: + Because of the structured nature o...
Add docstring note on named tuples.
py
diff --git a/luigi/rpc.py b/luigi/rpc.py index <HASH>..<HASH> 100644 --- a/luigi/rpc.py +++ b/luigi/rpc.py @@ -127,10 +127,10 @@ class RemoteScheduler(Scheduler): 'params': params, }) - def get_work(self, worker, host=None): + def get_work(self, worker, assistant=False, host=None): ...
Adds assistant argument to RemoteScheduler.get_work Workers can't use the remote scheduler at all with the bug this fixes.
py
diff --git a/tensor2tensor/bin/t2t_datagen.py b/tensor2tensor/bin/t2t_datagen.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/bin/t2t_datagen.py +++ b/tensor2tensor/bin/t2t_datagen.py @@ -70,7 +70,7 @@ flags.DEFINE_integer("task_id", -1, "For distributed data generation.") flags.DEFINE_integer("task_id_start", -1, ...
Make default num processes for multiprocessing problems None to use number of processes=cpu_count. PiperOrigin-RevId: <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ setup( license='Apache License Version 2.0', # Packages - packages=["pypika"], + packages=["pypika", "pypika.clickhouse"], # Include additional files into the package include_packag...
setup.py added into pypika.clickhouse packages
py
diff --git a/tests/test_pystmark.py b/tests/test_pystmark.py index <HASH>..<HASH> 100644 --- a/tests/test_pystmark.py +++ b/tests/test_pystmark.py @@ -68,7 +68,15 @@ class PystTestCaseBase(TestCase): msg = '{0} [{1}]'.format(msg, msg_suffix) self.fail(msg) + def assertIs(self, a, b): + ...
assertIs for python <I>
py
diff --git a/pylocus/plots_cti.py b/pylocus/plots_cti.py index <HASH>..<HASH> 100644 --- a/pylocus/plots_cti.py +++ b/pylocus/plots_cti.py @@ -202,12 +202,22 @@ def create_multispan_plots(tag_ids): return fig, ax_list, ax_total -def plot_matrix(matrix, title='matrix', yticks=None): - plt.imshow(matrix, inte...
Added saving function for matrix plot.
py
diff --git a/flask_graphql/graphqlview.py b/flask_graphql/graphqlview.py index <HASH>..<HASH> 100644 --- a/flask_graphql/graphqlview.py +++ b/flask_graphql/graphqlview.py @@ -47,7 +47,7 @@ class GraphQLView(View): return self.root_value def get_context(self, request): - return request + re...
Use context option (if provided) as the context_value for the execution of the query.
py
diff --git a/tests/test_phabricator.py b/tests/test_phabricator.py index <HASH>..<HASH> 100644 --- a/tests/test_phabricator.py +++ b/tests/test_phabricator.py @@ -552,7 +552,8 @@ class TestPhabricatorBackendArchive(TestCaseBackendArchive): def setUp(self): super().setUp() - self.backend = Phabric...
[tests] Modify phabricator tests when fetching from archive This patch adds two different backend objects (one fetches data from remote a data source and the other one from an archive) in order to ensure that backend and method params are initialized in the same way independently from which method is called (fetch or ...
py
diff --git a/oz/aws_cdn/__init__.py b/oz/aws_cdn/__init__.py index <HASH>..<HASH> 100644 --- a/oz/aws_cdn/__init__.py +++ b/oz/aws_cdn/__init__.py @@ -173,7 +173,7 @@ class S3File(CDNFile): def copy(self, new_path, replace=False): """Uses boto to copy the file to the new path instead of uploading anothe...
A new key is created if none exists when 'get_file' is called, should be using '.exists()' instead of checking if key is None
py
diff --git a/src/sos/preview.py b/src/sos/preview.py index <HASH>..<HASH> 100644 --- a/src/sos/preview.py +++ b/src/sos/preview.py @@ -240,10 +240,10 @@ def preview_dot(filename, kernel=None, style=None): src = Source(dot.read(), filename = fileNameElement, directory = tempDirectory) src.format = 'png...
fix the problem of Trailing whitespace
py
diff --git a/balast/discovery/ns.py b/balast/discovery/ns.py index <HASH>..<HASH> 100644 --- a/balast/discovery/ns.py +++ b/balast/discovery/ns.py @@ -90,7 +90,7 @@ class DnsServiceRecordList(DnsRecordList): if isinstance(rdata, A): address = rdata.address elif isi...
Trailing dot removed from Server objects created from CNAME
py
diff --git a/ford/sourceform.py b/ford/sourceform.py index <HASH>..<HASH> 100644 --- a/ford/sourceform.py +++ b/ford/sourceform.py @@ -2403,8 +2403,9 @@ class NameSelector(object): num = 1 self._counts[item.get_dir()][item.name] = num name = item.name.lower().replace('<','lt')...
bug: fixed replacements in name conversion Apparently there were 3 statements of replacing content. However, only the last statement was in use because of upper level dependency. (item.name vs. name). This fixes the naming scheme.
py
diff --git a/aws_ir_plugins/gather_host.py b/aws_ir_plugins/gather_host.py index <HASH>..<HASH> 100644 --- a/aws_ir_plugins/gather_host.py +++ b/aws_ir_plugins/gather_host.py @@ -119,7 +119,7 @@ class Plugin(object): WakeUp=True ) if self.api is True: - self.evi...
Return decoded image data from screenshot in API
py
diff --git a/polyaxon/scheduler/job_scheduler.py b/polyaxon/scheduler/job_scheduler.py index <HASH>..<HASH> 100644 --- a/polyaxon/scheduler/job_scheduler.py +++ b/polyaxon/scheduler/job_scheduler.py @@ -6,6 +6,7 @@ from django.conf import settings from constants.jobs import JobLifeCycle from docker_images.image_inf...
Use sidecar for job spawner
py
diff --git a/dataviews/dataviews.py b/dataviews/dataviews.py index <HASH>..<HASH> 100644 --- a/dataviews/dataviews.py +++ b/dataviews/dataviews.py @@ -42,8 +42,10 @@ class DataLayer(View): elif isinstance(data, Stack) or (isinstance(data, list) and data and isinstance(...
Reorganised DataLayer constructor to allow generators as input
py
diff --git a/bench/process_debug.py b/bench/process_debug.py index <HASH>..<HASH> 100644 --- a/bench/process_debug.py +++ b/bench/process_debug.py @@ -137,10 +137,7 @@ def plotDensity(dataTask, filename): def format_time(x, pos=None): """Formats the time""" start_time, end_time = [(a - begin_time...
* fixed x-axis density graph
py
diff --git a/windpowerlib/turbine_cluster_modelchain.py b/windpowerlib/turbine_cluster_modelchain.py index <HASH>..<HASH> 100644 --- a/windpowerlib/turbine_cluster_modelchain.py +++ b/windpowerlib/turbine_cluster_modelchain.py @@ -198,7 +198,7 @@ class TurbineClusterModelChain(ModelChain): """ # Set t...
More generic way of choosing roughness length from weather_df
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,6 +7,12 @@ Copyright © 2004-2009 Jason R. Coombs try: from distutils.command.build_py import build_py_2to3 as build_py + # exclude some fixers that break already compatible code + from lib2to3.refactor import get_f...
Added code to suppress a fixer that was causing trouble with absolute imports (see issue<I>)
py
diff --git a/instaLooter.py b/instaLooter.py index <HASH>..<HASH> 100644 --- a/instaLooter.py +++ b/instaLooter.py @@ -326,9 +326,10 @@ class InstaLooter(object): def _join_workers(self, with_pbar=False): while any(w.is_alive() for w in self._workers): - if with_pbar: + if with_pba...
Fix failing case in InstaLooter._join_workers
py
diff --git a/bcbio/pipeline/qcsummary.py b/bcbio/pipeline/qcsummary.py index <HASH>..<HASH> 100644 --- a/bcbio/pipeline/qcsummary.py +++ b/bcbio/pipeline/qcsummary.py @@ -740,7 +740,7 @@ def _run_gemini_stats(bam_file, data, out_dir): """ out = {} gemini_dbs = [d for d in - [tz.get_in(["...
Correct QC checking for gemini variants when variant calling not done
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -29,6 +29,7 @@ setup( 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', ...
Updated Python <I> compatibility classifier in setup.py.
py
diff --git a/bika/lims/upgrade/v01_03_003.py b/bika/lims/upgrade/v01_03_003.py index <HASH>..<HASH> 100644 --- a/bika/lims/upgrade/v01_03_003.py +++ b/bika/lims/upgrade/v01_03_003.py @@ -657,6 +657,7 @@ def update_samples_result_ranges(portal): specification assigned. In prior versions, getResultsRange was relying...
Add an informative message in upgrade step (#<I>)
py
diff --git a/Lib/glyphsLib/interpolation.py b/Lib/glyphsLib/interpolation.py index <HASH>..<HASH> 100644 --- a/Lib/glyphsLib/interpolation.py +++ b/Lib/glyphsLib/interpolation.py @@ -116,7 +116,8 @@ def add_masters_to_writer(writer, ufos): writer.addSource( path=path, name='%s %s' % (family, style...
[interpolation] Copy lib data to instances Some of this data will be technically incorrect for most instances, for example the weight name and value. However, all of this incorrect data resides in entries with a Glyphs-specific prefix and will generally be ignored. What we care about is the public.glyphOrder entry, w...
py
diff --git a/metpy/io/nexrad.py b/metpy/io/nexrad.py index <HASH>..<HASH> 100644 --- a/metpy/io/nexrad.py +++ b/metpy/io/nexrad.py @@ -329,6 +329,10 @@ class Level2File(object): self.clutter_filter_bypass_map = bmap + if offset != len(data): + warnings.warn('Message 13 left da...
Check that the message parsers use all the data they get. This is currently failing for Message <I>.
py
diff --git a/issue.py b/issue.py index <HASH>..<HASH> 100755 --- a/issue.py +++ b/issue.py @@ -119,9 +119,6 @@ def edit_issue(number, message="", tag="", status="", edit=False): save_issues() def init(force, compress): - if compress: - global gzip_file - gzip_file = True if exists("ISSUES"...
shouldn't break now if old file is compressed and new is not or vice versa
py
diff --git a/pyontutils/slimgen.py b/pyontutils/slimgen.py index <HASH>..<HASH> 100755 --- a/pyontutils/slimgen.py +++ b/pyontutils/slimgen.py @@ -24,8 +24,6 @@ from pyontutils.ilx_utils import ILXREPLACE from IPython import embed -memoryCheck(7300000000) - #ncbi_map = { #'name':, #'description':, @@ -2...
slimgen moved memcheck to main so as not to swamp testing
py
diff --git a/turnstile/middleware.py b/turnstile/middleware.py index <HASH>..<HASH> 100644 --- a/turnstile/middleware.py +++ b/turnstile/middleware.py @@ -199,6 +199,9 @@ class TurnstileMiddleware(object): # limit classes. preproc(self, environ) + # Make configuration available to the...
Allow the Limit classes access to the configuration
py
diff --git a/script/update.py b/script/update.py index <HASH>..<HASH> 100755 --- a/script/update.py +++ b/script/update.py @@ -31,10 +31,10 @@ def update_gyp(): python = sys.executable if sys.platform == 'cygwin': python = os.path.join('vendor', 'python_26', 'python.exe') - subprocess.check_call([python, gy...
Don't throw exception when gyp fails. This makes output cleaner when we got a gyp error.
py
diff --git a/openfisca_core/holders.py b/openfisca_core/holders.py index <HASH>..<HASH> 100644 --- a/openfisca_core/holders.py +++ b/openfisca_core/holders.py @@ -390,7 +390,13 @@ class Holder(object): self.variable.name in simulation.tax_benefit_system.cache_blacklist): return DatedHolder...
Don't store on disk if there is a value in memory
py
diff --git a/py3o/template/main.py b/py3o/template/main.py index <HASH>..<HASH> 100644 --- a/py3o/template/main.py +++ b/py3o/template/main.py @@ -185,7 +185,11 @@ class Template(object): move_siblings(opening_row, closing_row, genshi_node) - def get_user_variable(self): + def get_user_variables(self...
renamed the public method for get_user_variables
py
diff --git a/src/mlab/matlabcom.py b/src/mlab/matlabcom.py index <HASH>..<HASH> 100644 --- a/src/mlab/matlabcom.py +++ b/src/mlab/matlabcom.py @@ -86,8 +86,7 @@ class MatlabCom(object): #print ret if identify_erros and ret.rfind('???') != -1: begin = ret.rfind('???') + 4 - end = ret.find('\n', beg...
Display the entire Matlab error message on Windows.
py
diff --git a/spock/plugins/core/event.py b/spock/plugins/core/event.py index <HASH>..<HASH> 100644 --- a/spock/plugins/core/event.py +++ b/spock/plugins/core/event.py @@ -16,7 +16,6 @@ class EventCore: self.event_handlers = defaultdict(list) signal.signal(signal.SIGINT, self.kill) signal.signal(signal.SIGTERM,...
Remove unique response event generator from Event plugin This reverts commit bffd<I>d<I>f5b<I>a<I>c5e<I>c1ab<I>a<I>f<I>cd<I>a.
py
diff --git a/salt/modules/network.py b/salt/modules/network.py index <HASH>..<HASH> 100644 --- a/salt/modules/network.py +++ b/salt/modules/network.py @@ -1133,4 +1133,3 @@ def get_route(ip): return ret else: raise CommandExecutionError('Not yet supported on this platform') -
network module lint fix Remove empty lines at the end of file
py
diff --git a/bids/layout/models.py b/bids/layout/models.py index <HASH>..<HASH> 100644 --- a/bids/layout/models.py +++ b/bids/layout/models.py @@ -337,7 +337,10 @@ class BIDSJSONFile(BIDSFile): def get_dict(self): ''' Return the contents of the current file as a dictionary. ''' - return json.load...
ensure JSON contains a top-level dict, not list
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ setup( 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: Implementation :: PyPy', ], - install_requires=['graphql-core-next>=1.0.5'], + install_requires=['g...
Require version 3 of graphql-core
py
diff --git a/mopidy_podcast_itunes/directory.py b/mopidy_podcast_itunes/directory.py index <HASH>..<HASH> 100644 --- a/mopidy_podcast_itunes/directory.py +++ b/mopidy_podcast_itunes/directory.py @@ -9,7 +9,7 @@ import requests from urlparse import urljoin -from mopidy_podcast import PodcastDirectory +from mopidy_p...
Move PodcastDirectory to directory.py
py
diff --git a/kombine/clustered_kde.py b/kombine/clustered_kde.py index <HASH>..<HASH> 100644 --- a/kombine/clustered_kde.py +++ b/kombine/clustered_kde.py @@ -167,10 +167,6 @@ class KDE(object): self._cho_factor = la.cho_factor(self._kernel_cov) # Make sure the estimated PDF integrates to 1.0 - ...
Fix stupid bug (typo) in KDE.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='py-moneyed', packages=find_packages('src'), package_dir={'': 'src'}, - version='0.3', + version='0.4', description='Provides Currency and Money classes for use in your Python...
Updated version to <I>, which incorporates localized currency formatting from contributor jakewins.
py
diff --git a/spyder/widgets/sourcecode/base.py b/spyder/widgets/sourcecode/base.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/sourcecode/base.py +++ b/spyder/widgets/sourcecode/base.py @@ -55,7 +55,7 @@ class CompletionWidget(QListWidget): self.setWindowFlags(Qt.SubWindow | Qt.FramelessWindowHint) ...
Editor: Minor fixes after PR #<I>
py
diff --git a/source/rafcon/gui/controllers/execution_history.py b/source/rafcon/gui/controllers/execution_history.py index <HASH>..<HASH> 100644 --- a/source/rafcon/gui/controllers/execution_history.py +++ b/source/rafcon/gui/controllers/execution_history.py @@ -362,10 +362,10 @@ class ExecutionHistoryTreeController(Ex...
resolves #<I> cleaning of execution history does not work
py
diff --git a/OpenPNM/Algorithms/__OrdinaryPercolation__.py b/OpenPNM/Algorithms/__OrdinaryPercolation__.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Algorithms/__OrdinaryPercolation__.py +++ b/OpenPNM/Algorithms/__OrdinaryPercolation__.py @@ -204,8 +204,10 @@ class OrdinaryPercolation(GenericAlgorithm): self._...
OP now returns 'occupancy' as a float - this accommodates late pore filling - also plays nice with labels vs props methods Former-commit-id: <I>c1a<I>bfcb6ca<I>f<I>dcb2ea<I>b0ed Former-commit-id: a2f4fc4bad0ac7e<I>cd<I>a<I>cb7a<I>
py
diff --git a/push_notifications/gcm.py b/push_notifications/gcm.py index <HASH>..<HASH> 100644 --- a/push_notifications/gcm.py +++ b/push_notifications/gcm.py @@ -96,7 +96,7 @@ def gcm_send_bulk_message(registration_ids, data, collapse_key=None, delay_while values["data"] = data if collapse_key: - values["colla...
Fixed a bug where comma turned a variable into a tuple.
py
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py index <HASH>..<HASH> 100644 --- a/python/phonenumbers/__init__.py +++ b/python/phonenumbers/__init__.py @@ -146,7 +146,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency # Version number is taken from the ...
Prep for <I> release
py
diff --git a/armstrong/hatband/widgets/__init__.py b/armstrong/hatband/widgets/__init__.py index <HASH>..<HASH> 100644 --- a/armstrong/hatband/widgets/__init__.py +++ b/armstrong/hatband/widgets/__init__.py @@ -1,5 +1,6 @@ from pkgutil import extend_path __path__ = extend_path(__path__, __name__) -from armstrong.ha...
switch to relative imports and make sure the rest of django.contrib.admin.widgets is available
py
diff --git a/spyder/plugins/editor/panels/codefolding.py b/spyder/plugins/editor/panels/codefolding.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/panels/codefolding.py +++ b/spyder/plugins/editor/panels/codefolding.py @@ -174,7 +174,7 @@ class FoldingPanel(Panel): self.folding_levels = {} d...
Fix conflicting option for splitlines in py2
py
diff --git a/ryu/lib/packet/packet.py b/ryu/lib/packet/packet.py index <HASH>..<HASH> 100644 --- a/ryu/lib/packet/packet.py +++ b/ryu/lib/packet/packet.py @@ -42,7 +42,7 @@ class Packet(object): self.data = bytearray() r = self.protocols[::-1] for i, p in enumerate(r): - if p.__cla...
ryu/lib/packet/packet.py: should use isinstance instead of __class__.__base__ The current implementation doesn't allow inheriting twice from class PacketBase.
py
diff --git a/jupytext/cli.py b/jupytext/cli.py index <HASH>..<HASH> 100644 --- a/jupytext/cli.py +++ b/jupytext/cli.py @@ -94,6 +94,9 @@ def parse_jupytext_args(args=None): "which uses few cell markers (none when possible).\n" "Alternatively, a format compatib...
Mention that the main formats support roundtrips
py
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py index <HASH>..<HASH> 100644 --- a/salt/client/ssh/__init__.py +++ b/salt/client/ssh/__init__.py @@ -444,7 +444,7 @@ class Single(object): 'sudo': sudo, 'tty': tty} self.shell = salt.client.ssh.shell.Shell(o...
yaml.dumps() doesn't exist. Use dump().
py
diff --git a/test/unit/Network/MatFileTest.py b/test/unit/Network/MatFileTest.py index <HASH>..<HASH> 100644 --- a/test/unit/Network/MatFileTest.py +++ b/test/unit/Network/MatFileTest.py @@ -12,7 +12,7 @@ class MatFileTest: pn = OpenPNM.Network.MatFile(filename=fname) assert pn.Np == 105 asse...
Bah, finally got it. Not sure why, but Travis didn't like assigning fname in class setup, only each test
py
diff --git a/sanic_sentry.py b/sanic_sentry.py index <HASH>..<HASH> 100644 --- a/sanic_sentry.py +++ b/sanic_sentry.py @@ -24,6 +24,7 @@ class SanicSentry: self.client = raven.Client( dsn=app.config['SENTRY_DSN'], transport=raven_aiohttp.AioHttpTransport, + release=app.conf...
Add option to use a sentry release
py
diff --git a/zipline/lib/labelarray.py b/zipline/lib/labelarray.py index <HASH>..<HASH> 100644 --- a/zipline/lib/labelarray.py +++ b/zipline/lib/labelarray.py @@ -280,7 +280,9 @@ class LabelArray(ndarray): raise ValueError("Can't convert a 2D array to a categorical.") return pd.Categorical.from_co...
BUG: Fix failure on pandas >= <I>.
py
diff --git a/drapery/cli/drape.py b/drapery/cli/drape.py index <HASH>..<HASH> 100644 --- a/drapery/cli/drape.py +++ b/drapery/cli/drape.py @@ -1,7 +1,8 @@ import sys import logging -import click +import warnings +import click import fiona import rasterio from shapely.geometry import mapping @@ -44,6 +45,11 @@ de...
Check the raster bands and dtypes, warn if not as expected
py
diff --git a/gprof2dot.py b/gprof2dot.py index <HASH>..<HASH> 100755 --- a/gprof2dot.py +++ b/gprof2dot.py @@ -714,13 +714,13 @@ class Profile(Object): weights.append(function[TIME_RATIO]) except UndefinedEvent: pass - max_ratio = max(weights) + ...
Prevent ZeroDivisionError when options.colour_nodes_by_selftime is set
py
diff --git a/twilio/rest/studio/__init__.py b/twilio/rest/studio/__init__.py index <HASH>..<HASH> 100644 --- a/twilio/rest/studio/__init__.py +++ b/twilio/rest/studio/__init__.py @@ -51,9 +51,9 @@ class Studio(Domain): @property def flows(self): """ - :rtype: twilio.rest.studio.v2.flow.FlowLis...
fix: shortcut syntax for new non-GA versions (#<I>)
py
diff --git a/py/dynesty/dynesty.py b/py/dynesty/dynesty.py index <HASH>..<HASH> 100644 --- a/py/dynesty/dynesty.py +++ b/py/dynesty/dynesty.py @@ -496,7 +496,7 @@ def NestedSampler(loglikelihood, kwargs['max_move'] = max_move update_interval_ratio = __get_update_interval_ratio( - update_interval,...
fix bug introduced in ca<I>c3ad<I>aaa<I>ba<I>fadb0d<I>c8 with wrong argument order
py
diff --git a/emma2/msm/analysis/dense/decomposition.py b/emma2/msm/analysis/dense/decomposition.py index <HASH>..<HASH> 100644 --- a/emma2/msm/analysis/dense/decomposition.py +++ b/emma2/msm/analysis/dense/decomposition.py @@ -96,7 +96,7 @@ def eigenvectors(T, k=None, right=True): if right: val, R=eig(T, ...
Eigenvalues ordered according to absolute value
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -92,6 +92,13 @@ setup_args = dict( "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Operating System :: MacOS :: MacOS X", + "Programming Language :: Python",...
add supported python versions as trove classifiers
py
diff --git a/src/ossos-pipeline/tests/test_integration/test_controllers.py b/src/ossos-pipeline/tests/test_integration/test_controllers.py index <HASH>..<HASH> 100644 --- a/src/ossos-pipeline/tests/test_integration/test_controllers.py +++ b/src/ossos-pipeline/tests/test_integration/test_controllers.py @@ -22,7 +22,7 @@...
Use valid note 2 option in controller integration tests.
py
diff --git a/openquake/baselib/hdf5.py b/openquake/baselib/hdf5.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/hdf5.py +++ b/openquake/baselib/hdf5.py @@ -255,7 +255,9 @@ class File(h5py.File): # NB: the `decode` below is needed for Python 3 cls = dotname2cls(decode(h5attrs['__pyclass_...
Improved File.__fromh5__
py
diff --git a/misc/determine_git_version.py b/misc/determine_git_version.py index <HASH>..<HASH> 100644 --- a/misc/determine_git_version.py +++ b/misc/determine_git_version.py @@ -70,8 +70,10 @@ def in_git_repository(): it up. It turns out that git status returns non-zero exit codes for all sorts of success condit...
support case when git is not installed
py
diff --git a/airflow/exceptions.py b/airflow/exceptions.py index <HASH>..<HASH> 100644 --- a/airflow/exceptions.py +++ b/airflow/exceptions.py @@ -140,7 +140,7 @@ class BackfillUnfinished(AirflowException): Raises when not all tasks succeed in backfill. :param message: The human-readable description of the ...
Fix docstrings in exceptions.py (#<I>)
py
diff --git a/array/rotate_array.py b/array/rotate_array.py index <HASH>..<HASH> 100644 --- a/array/rotate_array.py +++ b/array/rotate_array.py @@ -28,6 +28,10 @@ def rotate_one_by_one(nums, k): nums[0] = temp +# +# Reverse segments of the array, followed by the entire array +# T(n)- O(n) +# def rotate(num...
Added time complexity of the optimized solution
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ def find_package_data(package): setuptools.setup( name='brozzler', - version='1.1b12.dev268', + version='1.1b12.dev269', description='Distributed web crawling with browsers', ...
cryptography lib version <I> is causing problems
py
diff --git a/chartpress.py b/chartpress.py index <HASH>..<HASH> 100644 --- a/chartpress.py +++ b/chartpress.py @@ -830,9 +830,11 @@ def publish_pages( if os.path.isfile(os.path.join(checkout_dir, "index.yaml")): with open(os.path.join(checkout_dir, "index.yaml")) as f: chart_repo_index = yaml...
fix check for first-time publishing chart
py
diff --git a/synapse/tests/test_cortex.py b/synapse/tests/test_cortex.py index <HASH>..<HASH> 100644 --- a/synapse/tests/test_cortex.py +++ b/synapse/tests/test_cortex.py @@ -2849,6 +2849,25 @@ class CortexTest(SynTest): self.none(t1[1].get('strform:baz')) self.none(t1[1].get('strform:haha')) ...
Add Cortex Core Fifo unit test and note
py
diff --git a/nodeconductor/cost_tracking/migrations/0018_priceestimate_threshold.py b/nodeconductor/cost_tracking/migrations/0018_priceestimate_threshold.py index <HASH>..<HASH> 100644 --- a/nodeconductor/cost_tracking/migrations/0018_priceestimate_threshold.py +++ b/nodeconductor/cost_tracking/migrations/0018_priceest...
Fix migration import (NC-<I>)
py
diff --git a/slither/core/slitherCore.py b/slither/core/slitherCore.py index <HASH>..<HASH> 100644 --- a/slither/core/slitherCore.py +++ b/slither/core/slitherCore.py @@ -26,7 +26,7 @@ class Slither: def contracts_derived(self): """list(Contract): List of contracts that are derived and not inherited.""" ...
Fix bug in contract.contracts_derived
py
diff --git a/curtsies/bpythonparse.py b/curtsies/bpythonparse.py index <HASH>..<HASH> 100644 --- a/curtsies/bpythonparse.py +++ b/curtsies/bpythonparse.py @@ -12,6 +12,8 @@ cnames = dict(list(zip('krgybmcwd', colors + ('default',)))) def func_for_letter(l, default='k'): if l == 'd': l = default + elif...
Fixed issue #<I> to handle letter 'D'
py
diff --git a/openpnm/core/_base2.py b/openpnm/core/_base2.py index <HASH>..<HASH> 100644 --- a/openpnm/core/_base2.py +++ b/openpnm/core/_base2.py @@ -337,8 +337,12 @@ class Base2(dict): from openpnm.models.misc import from_neighbor_throats, from_neighbor_pores element, prop = propname.split('.', 1) ...
raise exception if interpolated property is a boolean
py
diff --git a/alignak/objects/realm.py b/alignak/objects/realm.py index <HASH>..<HASH> 100644 --- a/alignak/objects/realm.py +++ b/alignak/objects/realm.py @@ -216,7 +216,6 @@ class Realm(Itemgroup): :type member: list :return: None """ - print("Realm, add sub member: %s" % member) ...
Clean the configuration dispatcher log and ping attempts
py
diff --git a/astrobase/checkplot.py b/astrobase/checkplot.py index <HASH>..<HASH> 100644 --- a/astrobase/checkplot.py +++ b/astrobase/checkplot.py @@ -1443,11 +1443,11 @@ def _pkl_finder_objectinfo(objectinfo, plt.annotate('N%s' % nbrind, (annotatex...
lcproc: add neighbor stuff to parallel_cp workers and driver
py
diff --git a/ykman/driver_otp.py b/ykman/driver_otp.py index <HASH>..<HASH> 100644 --- a/ykman/driver_otp.py +++ b/ykman/driver_otp.py @@ -186,7 +186,7 @@ class OTPDriver(AbstractDriver): self._dev, cmd, read_flags, result_buf, result_bufsize, expected_output_length, byref(bytes_read))) - ...
Make OTPDriver.write_to_and_read_from_key work in Python 2
py
diff --git a/pylint_django/transforms/transforms/mongoengine.py b/pylint_django/transforms/transforms/mongoengine.py index <HASH>..<HASH> 100644 --- a/pylint_django/transforms/transforms/mongoengine.py +++ b/pylint_django/transforms/transforms/mongoengine.py @@ -1,8 +1,9 @@ from mongoengine.errors import DoesNotExist,...
fix E<I> problem when use .objects as a query. By set .objects to a QuerySetManager instance.
py
diff --git a/pypeerassets/__main__.py b/pypeerassets/__main__.py index <HASH>..<HASH> 100644 --- a/pypeerassets/__main__.py +++ b/pypeerassets/__main__.py @@ -164,7 +164,6 @@ def find_card_transfers(provider: Provider, deck: Deck) -> Generator: provider = args[0] deck = args[1] raw_tx = args[...
small cleanup in card parsing logic
py
diff --git a/diagrams/WMEL.py b/diagrams/WMEL.py index <HASH>..<HASH> 100644 --- a/diagrams/WMEL.py +++ b/diagrams/WMEL.py @@ -172,7 +172,7 @@ class Artist: text = subplot.text(self.x_pos[number], -0.1, label, fontsize=font_size, horizontalalignment='center') return line, arrow_head, text - def p...
Exposed bbox_inches functionality in WMEL.plot
py
diff --git a/fluentcms_googlemaps/management/commands/import_markers.py b/fluentcms_googlemaps/management/commands/import_markers.py index <HASH>..<HASH> 100644 --- a/fluentcms_googlemaps/management/commands/import_markers.py +++ b/fluentcms_googlemaps/management/commands/import_markers.py @@ -56,7 +56,9 @@ Tip: export...
Fix utf-8 support for import_markers
py
diff --git a/demo/demo/settings.py b/demo/demo/settings.py index <HASH>..<HASH> 100644 --- a/demo/demo/settings.py +++ b/demo/demo/settings.py @@ -197,6 +197,12 @@ GEOIP_PATH = '/usr/share/GeoIP/' ############################################################ +from django import VERSION + + +if VERSION[:2] < (1, 6):...
test runner for django versions < <I>
py