diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/wordpress_xmlrpc/wordpress.py b/wordpress_xmlrpc/wordpress.py index <HASH>..<HASH> 100644 --- a/wordpress_xmlrpc/wordpress.py +++ b/wordpress_xmlrpc/wordpress.py @@ -53,7 +53,7 @@ class WordPressBase(object): return data def __repr__(self): - return '<%s: %s>' % (self.__class__.__...
Added a small change to the string representation of the WordPressBase class to make sure that it's returning unicode.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ def ParseRequirements(filename): with open(filename) as requirements: for line in requirements.readlines(): - if not (line.startswith('#') or line.startswith('-i') or not line): + if line.sta...
Fix bug in removing lines that start with # and '-i' (#<I>) w
py
diff --git a/cherrypy/process/wspbus.py b/cherrypy/process/wspbus.py index <HASH>..<HASH> 100644 --- a/cherrypy/process/wspbus.py +++ b/cherrypy/process/wspbus.py @@ -228,6 +228,7 @@ class Bus(object): def exit(self): """Stop all services and prepare to exit the process.""" + exitstate = self...
Made bus.exit call `os._exit` if called before start completes.
py
diff --git a/salt/modules/osquery.py b/salt/modules/osquery.py index <HASH>..<HASH> 100644 --- a/salt/modules/osquery.py +++ b/salt/modules/osquery.py @@ -8,7 +8,6 @@ from __future__ import absolute_import # Import python libs import json -import shlex # Import Salt libs import salt.utils
Removing an import that is not needed.
py
diff --git a/phypno/scroll_data.py b/phypno/scroll_data.py index <HASH>..<HASH> 100644 --- a/phypno/scroll_data.py +++ b/phypno/scroll_data.py @@ -297,8 +297,13 @@ class MainWindow(QMainWindow): filename = recent else: if DATASET_EXAMPLE is None: + try: + ...
with qfiledialog, open in the directory of the current file
py
diff --git a/cruddy/__init__.py b/cruddy/__init__.py index <HASH>..<HASH> 100644 --- a/cruddy/__init__.py +++ b/cruddy/__init__.py @@ -197,7 +197,7 @@ class CRUD(object): def get(self, id, decrypt=False): response = self._new_response() - if self._check_supported_op('list', response): + if...
Fixing the get operation to... Oh, I dunno... get
py
diff --git a/pypsa/plot.py b/pypsa/plot.py index <HASH>..<HASH> 100644 --- a/pypsa/plot.py +++ b/pypsa/plot.py @@ -455,8 +455,6 @@ def projected_area_factor(ax, original_crs=4326): """ if not hasattr(ax, "projection"): return 1 - if isinstance(ax.projection, ccrs.PlateCarree): - return 1 ...
fix: also recalculate projection from PlateCarree to itself
py
diff --git a/Python/lipd/pkg_resources/helpers/csvs.py b/Python/lipd/pkg_resources/helpers/csvs.py index <HASH>..<HASH> 100644 --- a/Python/lipd/pkg_resources/helpers/csvs.py +++ b/Python/lipd/pkg_resources/helpers/csvs.py @@ -233,8 +233,10 @@ def write_csv_to_file(d): w = csv.writer(f) ...
Added CSV exception - Since data tables with identical variables have become more prevalent, I added a new exception error message so the user knows to look for identical variables if their csv file wasn’t written. Other exceptions still fall through to the next lines.
py
diff --git a/docs/extensions/searchrepair.py b/docs/extensions/searchrepair.py index <HASH>..<HASH> 100644 --- a/docs/extensions/searchrepair.py +++ b/docs/extensions/searchrepair.py @@ -17,6 +17,8 @@ def modify_search_index(app, exception): searchfile = open(filename, "w") searchfile.write(d...
Update searchrepair.py
py
diff --git a/tests/test_tungsten.py b/tests/test_tungsten.py index <HASH>..<HASH> 100644 --- a/tests/test_tungsten.py +++ b/tests/test_tungsten.py @@ -32,15 +32,15 @@ class TungstenTestSuite(unittest.TestCase): if __name__ == '__main__': # Get appid from command line - parser = argparse.ArgumentParser(descri...
Fixed test_tungsten.py method of accessing appid from command line
py
diff --git a/perseuspy/__init__.py b/perseuspy/__init__.py index <HASH>..<HASH> 100644 --- a/perseuspy/__init__.py +++ b/perseuspy/__init__.py @@ -68,6 +68,8 @@ def read_perseus(path_or_file, type_map = perseus_to_dtype, **kwargs): """ annotations = read_annotations(path_or_file, separator, type_map) c...
handle 'usecols' kwarg in read.perseus
py
diff --git a/pycbc/frame.py b/pycbc/frame.py index <HASH>..<HASH> 100644 --- a/pycbc/frame.py +++ b/pycbc/frame.py @@ -56,7 +56,7 @@ def ReadFrame(filename, channels, start=None, end=None): else: end = int(end) span = end - start - if span < 0: + if span...
Fixed error when timespan was 0 seconds
py
diff --git a/django_static/templatetags/django_static.py b/django_static/templatetags/django_static.py index <HASH>..<HASH> 100644 --- a/django_static/templatetags/django_static.py +++ b/django_static/templatetags/django_static.py @@ -205,6 +205,9 @@ class StaticFilesNode(template.Node): """ ...
staticall and slimall ignored if not DJANGO_STATIC in settings
py
diff --git a/salt/daemons/flo/core.py b/salt/daemons/flo/core.py index <HASH>..<HASH> 100644 --- a/salt/daemons/flo/core.py +++ b/salt/daemons/flo/core.py @@ -670,7 +670,7 @@ class SaltLoadModules(ioflo.base.deeding.Deed): ) modules_max_memory = True old_mem_limit = resour...
- fix "ValueError: too many values to unpack" bug
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -59,6 +59,21 @@ rlz_dt = numpy.dtype([('uid', (bytes, 200)), ('gsims', (bytes, 200)), logversion = {True} +def strings(lst): + """ + ...
Fixed storing list of unicode strings in HDF5
py
diff --git a/tests/test_tun.py b/tests/test_tun.py index <HASH>..<HASH> 100644 --- a/tests/test_tun.py +++ b/tests/test_tun.py @@ -93,8 +93,8 @@ def test_tunSlipSend(): # Create an IP packet to send from TUN IP:port (arbitrary) to dest IP:port srcPacket = (IP(dst=destHost, src=TUNMonitor....
Cleaned up `flake8` failures
py
diff --git a/asn1crypto/core.py b/asn1crypto/core.py index <HASH>..<HASH> 100644 --- a/asn1crypto/core.py +++ b/asn1crypto/core.py @@ -2062,7 +2062,11 @@ class Sequence(Asn1Value): if isinstance(child, tuple): child = _build(*child) self.children[in...
Handle situations where .native is called but _fields has not been set
py
diff --git a/jax/numpy/lax_numpy.py b/jax/numpy/lax_numpy.py index <HASH>..<HASH> 100644 --- a/jax/numpy/lax_numpy.py +++ b/jax/numpy/lax_numpy.py @@ -1006,7 +1006,7 @@ def ediff1d(ary, to_end=None, to_begin=None): return result -@partial(jit, static_argnums=(1, 2)) +@partial(jit, static_argnums=2) def _gradien...
Remove unnecessary static_argnum in np.gradient (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -267,6 +267,11 @@ if mo: else: raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,)) +install_requires = [] +if sys.version_info < (3, 4): + # Backport of Python 3.4 enums to earlier versions +...
don't install enum<I> on python >= <I>
py
diff --git a/test/core/exe_test.py b/test/core/exe_test.py index <HASH>..<HASH> 100644 --- a/test/core/exe_test.py +++ b/test/core/exe_test.py @@ -467,7 +467,7 @@ class TestExecutorTest(unittest.TestCase): self.assertTrue(record.outcome, Outcome.FAIL) # Verify phase_one was not run ran_phase = [phase.nam...
exe_test: Use assertNotIn (#<I>) Use assertNotIn instead of assertFalse(x in y) because it will give better error messages.
py
diff --git a/tests/full_game.py b/tests/full_game.py index <HASH>..<HASH> 100755 --- a/tests/full_game.py +++ b/tests/full_game.py @@ -1,19 +1,24 @@ #!/usr/bin/env python import sys; sys.path.append("..") -import fireplace +import fireplace.heroes import logging +from fireplace.game import Game +from fireplace.playe...
Update full game test to the newer APIs Fixes #<I> Closes #<I>
py
diff --git a/core/setup.py b/core/setup.py index <HASH>..<HASH> 100644 --- a/core/setup.py +++ b/core/setup.py @@ -86,5 +86,5 @@ setup( 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ], - python_requires=">=3.6.2", + python_requires=">=3.6.3", )
Update minimum python version: <I> has a typing bug that dbt/hologram handle poorly
py
diff --git a/host/analysis/plotting/plotting.py b/host/analysis/plotting/plotting.py index <HASH>..<HASH> 100644 --- a/host/analysis/plotting/plotting.py +++ b/host/analysis/plotting/plotting.py @@ -670,6 +670,8 @@ def create_1d_hist(hist, title=None, x_axis_title=None, y_axis_title=None, bins= else: ...
ENH: fix bin size when bins is a small number
py
diff --git a/funkyyak/node_types.py b/funkyyak/node_types.py index <HASH>..<HASH> 100644 --- a/funkyyak/node_types.py +++ b/funkyyak/node_types.py @@ -21,7 +21,7 @@ class NumericNode(Node): def __gt__(self, other): return getval(self) > getval(other) class FloatNode(NumericNode): - _value_types = [float,...
Allowed derivatives w.r.t. float<I> and float<I> as well
py
diff --git a/scripts/importer/mtasks/donations.py b/scripts/importer/mtasks/donations.py index <HASH>..<HASH> 100644 --- a/scripts/importer/mtasks/donations.py +++ b/scripts/importer/mtasks/donations.py @@ -9,7 +9,7 @@ from math import isnan from scripts import PATH from .. import Events from .. funcs import add_pho...
MAINT: clean-up to get migrated donations code working.
py
diff --git a/asv/step_detect.py b/asv/step_detect.py index <HASH>..<HASH> 100644 --- a/asv/step_detect.py +++ b/asv/step_detect.py @@ -349,7 +349,7 @@ Making use of measured variance ------------------------------- ``asv`` measures also variance in the timings. This information is -currently not used in the step d...
DOC: fixup notice about relative data weights
py
diff --git a/oauth2client/__init__.py b/oauth2client/__init__.py index <HASH>..<HASH> 100644 --- a/oauth2client/__init__.py +++ b/oauth2client/__init__.py @@ -14,7 +14,7 @@ """Client library for using OAuth2, especially with Google APIs.""" -__version__ = '2.2.0' +__version__ = '3.0.0' GOOGLE_AUTH_URI = 'https:...
Update version number to <I>
py
diff --git a/stl/base.py b/stl/base.py index <HASH>..<HASH> 100644 --- a/stl/base.py +++ b/stl/base.py @@ -355,6 +355,26 @@ class BaseMesh(logger.Logged, collections.Mapping): self.y += translation[1] self.z += translation[2] + def transform(self, matrix): + ''' + Transform the mesh...
Added a transform method to class BaseMesh
py
diff --git a/ella/utils/installedapps.py b/ella/utils/installedapps.py index <HASH>..<HASH> 100644 --- a/ella/utils/installedapps.py +++ b/ella/utils/installedapps.py @@ -54,6 +54,7 @@ def call_modules(auto_discover=()): else: # ImportError inside autodiscovered file ...
Logger added to installedapps.py.
py
diff --git a/spacy/tests/test_requirements.py b/spacy/tests/test_requirements.py index <HASH>..<HASH> 100644 --- a/spacy/tests/test_requirements.py +++ b/spacy/tests/test_requirements.py @@ -8,11 +8,21 @@ def test_build_dependencies(en_vocab): libs_ignore_setup = ["fugashi", "natto-py", "pythainlp"] # check...
hack to switch between CLI folder setup and local setup
py
diff --git a/sure/__init__.py b/sure/__init__.py index <HASH>..<HASH> 100644 --- a/sure/__init__.py +++ b/sure/__init__.py @@ -598,7 +598,10 @@ class AssertionBuilder(object): items = [first] first = '_abcoll' else: - first = u'__builtin__' + ...
little adition for p3 compatibility
py
diff --git a/bika/lims/browser/worksheet.py b/bika/lims/browser/worksheet.py index <HASH>..<HASH> 100644 --- a/bika/lims/browser/worksheet.py +++ b/bika/lims/browser/worksheet.py @@ -553,7 +553,7 @@ class WorksheetAnalysesView(AnalysesView): pos_text += "<td class='pos_top_icons' rowspan='3'>" ...
encode translation to utf-8 for further string concatenation.
py
diff --git a/master/buildbot/changes/hgbuildbot.py b/master/buildbot/changes/hgbuildbot.py index <HASH>..<HASH> 100644 --- a/master/buildbot/changes/hgbuildbot.py +++ b/master/buildbot/changes/hgbuildbot.py @@ -151,9 +151,11 @@ def hook(ui, repo, hooktype, node=None, source=None, **kwargs): parents = filter(la...
add property 'is_merge' as indication that changes is caused by a merge
py
diff --git a/pypeerassets/pautils.py b/pypeerassets/pautils.py index <HASH>..<HASH> 100644 --- a/pypeerassets/pautils.py +++ b/pypeerassets/pautils.py @@ -202,7 +202,7 @@ def validate_card_transfer_p2th(deck: Deck, raw_tx: dict) -> None: if not address == deck.p2th_address: raise InvalidCardTransf...
Try Except TypeError from e ( validate card p2th )
py
diff --git a/src/metpy/_version.py b/src/metpy/_version.py index <HASH>..<HASH> 100644 --- a/src/metpy/_version.py +++ b/src/metpy/_version.py @@ -12,7 +12,7 @@ def get_version(): """ try: from setuptools_scm import get_version - return get_version(root='..', relative_to=__file__, + ret...
MNT: Fix getting version for development install Path wasn't updated when we moved source code to 'src/'.
py
diff --git a/hgvs/dataproviders/uta.py b/hgvs/dataproviders/uta.py index <HASH>..<HASH> 100644 --- a/hgvs/dataproviders/uta.py +++ b/hgvs/dataproviders/uta.py @@ -466,7 +466,7 @@ class UTABase(Interface, SeqFetcher): except HGVSDataNotAvailableError: pass # if ac not matching or o...
bug fix: uta.py:fetch_seq() super() called with wrong class
py
diff --git a/tests/testing_utils.py b/tests/testing_utils.py index <HASH>..<HASH> 100644 --- a/tests/testing_utils.py +++ b/tests/testing_utils.py @@ -236,7 +236,8 @@ def initialize_environment_gui(gui_config=None, runtime_config=None): GUI_INITIALIZED = True -def shutdown_environment(config=True, gui_config=T...
fix(testing_utils): avoid patch for core tests
py
diff --git a/tests/core/tools/test_runner/test_yaml_runner.py b/tests/core/tools/test_runner/test_yaml_runner.py index <HASH>..<HASH> 100644 --- a/tests/core/tools/test_runner/test_yaml_runner.py +++ b/tests/core/tools/test_runner/test_yaml_runner.py @@ -52,3 +52,10 @@ def test_reforms_formats(): list_lonely_refor...
Add test on reforms order in tbs cache
py
diff --git a/awacs/aws.py b/awacs/aws.py index <HASH>..<HASH> 100644 --- a/awacs/aws.py +++ b/awacs/aws.py @@ -29,13 +29,13 @@ UserAgent = "aws:UserAgent" class Action(AWSHelperFn): def __init__(self, prefix, action=None): self.prefix = prefix - if prefix == '*' and action != None: + if pre...
Make aws.py changes compliant with style conventions in PEP 8
py
diff --git a/clint/textui/colored.py b/clint/textui/colored.py index <HASH>..<HASH> 100644 --- a/clint/textui/colored.py +++ b/clint/textui/colored.py @@ -62,7 +62,7 @@ class ColoredString(object): def __unicode__(self): value = self.color_str - if isinstance(value, basestring): + if isins...
Ignore unicode strings as they are already decoded
py
diff --git a/dark/sam.py b/dark/sam.py index <HASH>..<HASH> 100644 --- a/dark/sam.py +++ b/dark/sam.py @@ -1,6 +1,5 @@ import six -from itertools import chain from contextlib import contextmanager from collections import Counter, defaultdict
Removed unused import from dark/sam.py
py
diff --git a/imbox/parser.py b/imbox/parser.py index <HASH>..<HASH> 100644 --- a/imbox/parser.py +++ b/imbox/parser.py @@ -82,6 +82,8 @@ def decode_param(param): if missing_padding: value += b"=" * (4 - missing_padding) + value = base64.b64decode(value)...
decode_param() decode base<I> while there seems to be a check for base<I> encoding (idicated by "B"), the string was never decoded.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -31,6 +31,9 @@ setup( 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: Implementa...
Update trove classifiers for CPython and PyPy.
py
diff --git a/pypika/terms.py b/pypika/terms.py index <HASH>..<HASH> 100644 --- a/pypika/terms.py +++ b/pypika/terms.py @@ -22,7 +22,7 @@ class Term(object): @property def tables_(self): - return {} + return set() @staticmethod def _wrap(val):
Fixed a bug in tables_ in the Base Term class where a dict was returned instead of a set
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -110,7 +110,8 @@ todo_include_todos = False # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'sphinx_rtd_theme' +#html_theme = 'sphinx_rt...
Debugging sphinx build issues.
py
diff --git a/src/ossos-pipeline/ossos/gui/context.py b/src/ossos-pipeline/ossos/gui/context.py index <HASH>..<HASH> 100644 --- a/src/ossos-pipeline/ossos/gui/context.py +++ b/src/ossos-pipeline/ossos/gui/context.py @@ -93,8 +93,8 @@ class VOSpaceWorkingContext(WorkingContext): return True def listdir(se...
Don't force VOSpace listdir. Caching provides a huge performance benefit.
py
diff --git a/mcfit/mcfit.py b/mcfit/mcfit.py index <HASH>..<HASH> 100644 --- a/mcfit/mcfit.py +++ b/mcfit/mcfit.py @@ -151,7 +151,8 @@ class mcfit(object): if self.Nin < 2: raise ValueError("input size too small") Delta = np.log(self.x[-1] / self.x[0]) / (self.Nin - 1) - if not np....
Fix bug introduced in <I>dc0
py
diff --git a/references/classification/utils.py b/references/classification/utils.py index <HASH>..<HASH> 100644 --- a/references/classification/utils.py +++ b/references/classification/utils.py @@ -403,7 +403,9 @@ def store_model_weights(model, checkpoint_path, checkpoint_key="model", strict=T def reduce_across_pro...
Fix reduce_across_processes inconsistent return type (#<I>)
py
diff --git a/a10_neutron_lbaas/v2/handler_listener.py b/a10_neutron_lbaas/v2/handler_listener.py index <HASH>..<HASH> 100644 --- a/a10_neutron_lbaas/v2/handler_listener.py +++ b/a10_neutron_lbaas/v2/handler_listener.py @@ -84,16 +84,17 @@ class ListenerHandler(handler_base_v2.HandlerBaseV2): LOG.except...
Remove https port when removing certificate binding. If the binding is being deleted and the listener wasn't created as https remove the https port and re-create it as the original port type
py
diff --git a/examples/get_annotations.py b/examples/get_annotations.py index <HASH>..<HASH> 100644 --- a/examples/get_annotations.py +++ b/examples/get_annotations.py @@ -57,7 +57,7 @@ if __name__ == '__main__': print(annotations) if params.download_path: - f= open(params.download_path+"....
Add project ID as CSV file name
py
diff --git a/test/test_socks.py b/test/test_socks.py index <HASH>..<HASH> 100644 --- a/test/test_socks.py +++ b/test/test_socks.py @@ -738,7 +738,7 @@ class SocksErrorTests(unittest.TestCase): self.assertEquals(error.message, message) self.assertEquals(str(error), message) - def test_socks_error_...
Make method names of the `SocksErrorTests` consistent
py
diff --git a/pyof/v0x01/controller2switch/features_reply.py b/pyof/v0x01/controller2switch/features_reply.py index <HASH>..<HASH> 100644 --- a/pyof/v0x01/controller2switch/features_reply.py +++ b/pyof/v0x01/controller2switch/features_reply.py @@ -84,3 +84,6 @@ class SwitchFeatures(base.GenericStruct): self.cap...
[v0x<I>] Fix #<I> - Add FeaturesReply Class
py
diff --git a/io3d/datasets.py b/io3d/datasets.py index <HASH>..<HASH> 100644 --- a/io3d/datasets.py +++ b/io3d/datasets.py @@ -279,7 +279,8 @@ data_urls = { __hash_path_prefix + "CMU-1.ndpi.ndpa", ], "R2D2": [ - "https://drive.google.com/file/d/1hGeRrU9iOnbwOU-8YqZFx9HiCjvV1y10/view?usp=sharin...
now R2D2 moved to server
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( version=version, license='MIT', description='EVE CREST access tool', - url='https://git.celeodor.com/Celeo/Prest', + url='http://git.celeodor.com/Celeo/Prest', platforms='any', ...
Removed HTTPS in favor of HTTP for git repo Some devices won't recognzie the Let's Encrypt CA and will throw security errors
py
diff --git a/pdb.py b/pdb.py index <HASH>..<HASH> 100644 --- a/pdb.py +++ b/pdb.py @@ -154,12 +154,12 @@ class Pdb(pdb.Pdb, ConfigurableClass): return try: capman = py.test.config.pluginmanager.getplugin('capturemanager') + capman.suspendcapture() except KeyError: ...
don't crash with older version of py.test
py
diff --git a/superset/sql_lab.py b/superset/sql_lab.py index <HASH>..<HASH> 100644 --- a/superset/sql_lab.py +++ b/superset/sql_lab.py @@ -285,8 +285,9 @@ def execute_sql_statement( raise SupersetErrorException( SupersetError( message=__( - f"The query was kille...
fix: pybabel extract fails (#<I>) * fix pybabel extract fails * fix black * trigger GitHub actions
py
diff --git a/GPy/util/__init__.py b/GPy/util/__init__.py index <HASH>..<HASH> 100644 --- a/GPy/util/__init__.py +++ b/GPy/util/__init__.py @@ -14,6 +14,15 @@ import visualize import decorators import classification import latent_space_visualizations -import symbolic + +try: + import sympy + _sympy_available = ...
improved detectino of sympy
py
diff --git a/fut/core.py b/fut/core.py index <HASH>..<HASH> 100644 --- a/fut/core.py +++ b/fut/core.py @@ -65,11 +65,11 @@ def baseId(resource_id, return_version=False): def itemParse(item_data, full=True): """Parser for item data. Returns nice dictionary. - :params iteam_data: Item data received from ea ser...
Fixed some typos/wording.
py
diff --git a/gffutils/feature.py b/gffutils/feature.py index <HASH>..<HASH> 100644 --- a/gffutils/feature.py +++ b/gffutils/feature.py @@ -228,7 +228,7 @@ def feature_from_line(line, dialect=None): fields = line.rstrip('\n\r').split('\t') else: fields = line.rstrip('\n\r').split(None, 8) - att...
send dialect when creating Feature from line
py
diff --git a/tinman/mapping.py b/tinman/mapping.py index <HASH>..<HASH> 100644 --- a/tinman/mapping.py +++ b/tinman/mapping.py @@ -113,7 +113,7 @@ class Mapping(collections.Mapping): :param mixed value: The value to set """ - if key[0] != '_': + if key[0] != '_' and not self._dirty: ...
Don't set dirty if it's already set
py
diff --git a/py/test/rsession/local.py b/py/test/rsession/local.py index <HASH>..<HASH> 100644 --- a/py/test/rsession/local.py +++ b/py/test/rsession/local.py @@ -22,13 +22,10 @@ def benchmark_runner(item, session, reporter): raise NotImplementedError() def apigen_runner(item, session, reporter): - startcapt...
[svn r<I>] Argh. Forgotten to check that in --HG-- branch : trunk
py
diff --git a/parsl/data_provider/globus.py b/parsl/data_provider/globus.py index <HASH>..<HASH> 100644 --- a/parsl/data_provider/globus.py +++ b/parsl/data_provider/globus.py @@ -1,6 +1,7 @@ import logging import json import globus_sdk +import os logger = logging.getLogger(__name__) @@ -22,8 +23,10 @@ REDIRECT_...
May have closed #<I>. Not sure how to test if this was successful.
py
diff --git a/tensor2tensor/models/video/sv2p.py b/tensor2tensor/models/video/sv2p.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/models/video/sv2p.py +++ b/tensor2tensor/models/video/sv2p.py @@ -569,8 +569,15 @@ class NextFrameSv2p(basic_stochastic.NextFrameBasicStochastic): return_targets = {"targets": pred...
adding reward loss to the internal loss. PiperOrigin-RevId: <I>
py
diff --git a/pyocd/gdbserver/gdbserver.py b/pyocd/gdbserver/gdbserver.py index <HASH>..<HASH> 100644 --- a/pyocd/gdbserver/gdbserver.py +++ b/pyocd/gdbserver/gdbserver.py @@ -981,6 +981,8 @@ class GDBServer(threading.Thread): resp = hex_encode(b"Erase successful\n") except exceptions.Error...
Add 'sync' gdb monitor command. Sends gdb a stop notification.
py
diff --git a/tests/setup_database.py b/tests/setup_database.py index <HASH>..<HASH> 100644 --- a/tests/setup_database.py +++ b/tests/setup_database.py @@ -312,13 +312,13 @@ def importRecursive(type, parent, root): root = resolvePath(root) folders = {root: parent} - for root, dirs, files in os.walk(root, ...
Fix bugbear B<I> lint issue.
py
diff --git a/simuvex/plugins/symbolic_memory.py b/simuvex/plugins/symbolic_memory.py index <HASH>..<HASH> 100644 --- a/simuvex/plugins/symbolic_memory.py +++ b/simuvex/plugins/symbolic_memory.py @@ -53,6 +53,18 @@ class SimSymbolicMemory(SimMemory): #pylint:disable=abstract-method SimMemory.set_state(self, s) ...
serialized SimSymbolicMemory now has concrete repr
py
diff --git a/dingo/core/network/grids.py b/dingo/core/network/grids.py index <HASH>..<HASH> 100644 --- a/dingo/core/network/grids.py +++ b/dingo/core/network/grids.py @@ -79,11 +79,23 @@ class MVGridDingo(GridDingo): for circ_breaker in self.circuit_breakers(): circ_breaker.close() + def ring...
add method rings() to MVGridDingo class as generator to obtain all rings/routes of the grid/graph
py
diff --git a/backtrader/linebuffer.py b/backtrader/linebuffer.py index <HASH>..<HASH> 100644 --- a/backtrader/linebuffer.py +++ b/backtrader/linebuffer.py @@ -120,6 +120,19 @@ class LineBuffer(LineSingle): ''' return self.array[self.idx + ago - size + 1:self.idx + ago + 1] + def getzeroval(self, ...
linebuffer add getzeroval to get a single value from the real base 0 index
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ setuptools.setup( tests_require=["pytest", "aiohttp", "pytest-asyncio", "aresponses"], long_description_content_type="text/markdown", url="https://github.com/ludeeus/pytraccar", - packages=setu...
Exclude tests from installs (#9)
py
diff --git a/ez_setup.py b/ez_setup.py index <HASH>..<HASH> 100644 --- a/ez_setup.py +++ b/ez_setup.py @@ -37,15 +37,6 @@ def _python_cmd(*args): args = (sys.executable,) + args return subprocess.call(args) == 0 -def _check_call_py24(cmd, *args, **kwargs): - res = subprocess.call(cmd, *args, **kwargs) - ...
Remove Python <I> compatibility from ez_setup.py
py
diff --git a/can/interfaces/nican.py b/can/interfaces/nican.py index <HASH>..<HASH> 100644 --- a/can/interfaces/nican.py +++ b/can/interfaces/nican.py @@ -282,9 +282,11 @@ class NicanBus(BusABC): #nican.ncWaitForState( # self.handle, NC_ST_WRITE_SUCCESS, int(timeout * 1000), ctypes.byref(state)) ...
NI-CAN: Add reset method and remove flush_tx_buffer method (#<I>)
py
diff --git a/docs/extensions/generate_bug_description.py b/docs/extensions/generate_bug_description.py index <HASH>..<HASH> 100644 --- a/docs/extensions/generate_bug_description.py +++ b/docs/extensions/generate_bug_description.py @@ -37,7 +37,7 @@ def generate_bug_description(language): if (bug_patter...
close #<I>: use raw-block instead of explicit link target Sphinx replaces underscore with hyphen (maybe to follow legacy HTML best practice) so use raw HTML to use underscore in anchor.
py
diff --git a/rest_hooks/tests.py b/rest_hooks/tests.py index <HASH>..<HASH> 100644 --- a/rest_hooks/tests.py +++ b/rest_hooks/tests.py @@ -278,7 +278,7 @@ class RESTHooksTest(TestCase): form_data = { 'user': self.user.id, 'target': "http://example.com", - 'event': models.HO...
Unit test fix for event value in form test (Python 3). Unit test needs any valid event value. Therefore, this change uses the ADMIN_EVENTS list for value assignment. Previous commit was indexing dict.keys method which is a non list type in Python 3. This was at the heart of the unit test failure.
py
diff --git a/owslib/wms.py b/owslib/wms.py index <HASH>..<HASH> 100644 --- a/owslib/wms.py +++ b/owslib/wms.py @@ -407,7 +407,10 @@ class ContentMetadata: #raise ValueError('%s no SRS available!?' % (elem,)) #Comment by D Lowe. #Do not raise ValueError as it is possible that a lay...
Fix by @anthonybaxter of the initial state of crsOptions
py
diff --git a/textblob/taggers.py b/textblob/taggers.py index <HASH>..<HASH> 100644 --- a/textblob/taggers.py +++ b/textblob/taggers.py @@ -1,4 +1,4 @@ -'''Default taggers to the English taggers for backwards incompatiblity, so you +'''Default taggers to the English taggers for backwards incompatibility, so you can sti...
docs: fix simple typo, incompatiblity -> incompatibility There is a small typo in textblob/taggers.py. Should read `incompatibility` rather than `incompatiblity`.
py
diff --git a/examples/howto/events_app.py b/examples/howto/events_app.py index <HASH>..<HASH> 100644 --- a/examples/howto/events_app.py +++ b/examples/howto/events_app.py @@ -25,7 +25,7 @@ def display_event(div, attributes=[]): for (var i=0; i<attrs.length; i++ ) { args.push(attrs[i] + '=' + Numbe...
Removed stray single quote from events_app.py CustomJS output
py
diff --git a/lambdaJSON.py b/lambdaJSON.py index <HASH>..<HASH> 100644 --- a/lambdaJSON.py +++ b/lambdaJSON.py @@ -11,7 +11,7 @@ flatten = lambda obj: (isinstance(obj, bytes) or isinstance(obj, list) and [flatten(i) for i in obj] ...
Fixed a problem came from vars(__builtins__)
py
diff --git a/semantic_release/__init__.py b/semantic_release/__init__.py index <HASH>..<HASH> 100644 --- a/semantic_release/__init__.py +++ b/semantic_release/__init__.py @@ -1,6 +1,6 @@ """Semantic Release """ -__version__ = '5.0.0' +__version__ = '5.0.1' from .errors import UnknownCommitMessageStyleError # no...
<I> Automatically generated by python-semantic-release
py
diff --git a/securesystemslib/gpg/constants.py b/securesystemslib/gpg/constants.py index <HASH>..<HASH> 100644 --- a/securesystemslib/gpg/constants.py +++ b/securesystemslib/gpg/constants.py @@ -25,14 +25,14 @@ import in_toto.user_settings as settings # By default, we assume and test that gpg2 exists. Otherwise, we ...
Minor edit: use double-quoted strings to be consistent.
py
diff --git a/docs/source/conf.py b/docs/source/conf.py index <HASH>..<HASH> 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -27,7 +27,7 @@ author = "The Font Bakery Authors" # The short X.Y version version = "0.7" # The full version, including alpha/beta/rc tags -release = "0.7.6" +release = "0.7.7" ...
update version on docs/source/conf.py
py
diff --git a/dimod/binary_quadratic_model.py b/dimod/binary_quadratic_model.py index <HASH>..<HASH> 100644 --- a/dimod/binary_quadratic_model.py +++ b/dimod/binary_quadratic_model.py @@ -1854,7 +1854,7 @@ class BinaryQuadraticModel(abc.Sized, abc.Container, abc.Iterable): BinaryQuadraticModel({1: 1, 2: 2, ...
Accept iterators in BQM.from_ising
py
diff --git a/aioimaplib/aioimaplib.py b/aioimaplib/aioimaplib.py index <HASH>..<HASH> 100644 --- a/aioimaplib/aioimaplib.py +++ b/aioimaplib/aioimaplib.py @@ -591,7 +591,7 @@ class IMAP4ClientProtocol(asyncio.Protocol): async def wait(self, state_regexp: Pattern) -> None: state_re = re.compile(state_reg...
fix with await -> async with <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,7 @@ setup( 'requests_oauthlib>=0.3.0', 'ipython>=0.13', 'tlslite==0.4.1'], + setup_requires=['sphinx','requests_oauthlib'], extras_require...
Added sphinx to setup.py so now you can build documentation using `python setup.py build_sphinx` modified: setup.py
py
diff --git a/tests/openwrt/test_context.py b/tests/openwrt/test_context.py index <HASH>..<HASH> 100644 --- a/tests/openwrt/test_context.py +++ b/tests/openwrt/test_context.py @@ -48,3 +48,13 @@ class TestContext(unittest.TestCase, _TabsMixin): line = "option timezone '{Europe/Amsterdam}'".format(**timezones) ...
[OpenWrt] Added test_no_variables_found
py
diff --git a/armstrong/core/arm_sections/models.py b/armstrong/core/arm_sections/models.py index <HASH>..<HASH> 100644 --- a/armstrong/core/arm_sections/models.py +++ b/armstrong/core/arm_sections/models.py @@ -1,3 +1,4 @@ +import warnings import django from django.db import models from django.core.exceptions import...
deprecate `get_query_set` instead of removing it outright to be friendlier to older Djangos When ArmSections <I> happens, we can use the previous method of defining `get_query_set` via a conditional
py
diff --git a/drivers/python/rethinkdb/net.py b/drivers/python/rethinkdb/net.py index <HASH>..<HASH> 100644 --- a/drivers/python/rethinkdb/net.py +++ b/drivers/python/rethinkdb/net.py @@ -104,9 +104,13 @@ class Connection(object): pair.key = k expr(v).build(pair.val) + noreply = False ...
implements noreply for python
py
diff --git a/pysc2/env/host_remote_agent.py b/pysc2/env/host_remote_agent.py index <HASH>..<HASH> 100644 --- a/pysc2/env/host_remote_agent.py +++ b/pysc2/env/host_remote_agent.py @@ -248,7 +248,7 @@ class VsBot(object): def close(self): """Shutdown and free all resources.""" - if self._process is not None:...
Make the close survive an exception launching the game. PiperOrigin-RevId: <I>
py
diff --git a/photutils/segmentation.py b/photutils/segmentation.py index <HASH>..<HASH> 100644 --- a/photutils/segmentation.py +++ b/photutils/segmentation.py @@ -1429,8 +1429,8 @@ def remove_masked_segments(segment_image, mask, partial_overlap=True, partial_overlap : bool, optional If this is set to `T...
Update docs in remove_masked_segments
py
diff --git a/reaction.py b/reaction.py index <HASH>..<HASH> 100644 --- a/reaction.py +++ b/reaction.py @@ -100,13 +100,13 @@ def parse_compound_list(cmpds): yield parse_compound(cmpd) -def parse(tokens): - '''Parse a tokenized reaction +def parse(rx): + '''Parse a reaction string <reaction> ::...
reaction: Parse string directly by doing tokenization in the process
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,6 +18,7 @@ setup( ], install_requires=[ "astor", + "coreir==1.0.2", "cosa" ], license='BSD License',
try installing specific pycoreir version
py
diff --git a/build/build.py b/build/build.py index <HASH>..<HASH> 100755 --- a/build/build.py +++ b/build/build.py @@ -55,7 +55,20 @@ def build(config_file = None, output_file = None, options = None): elif use_compressor == "minimize": minimized = minimize.minimize(merged) elif use_compressor == "clo...
Modify build script to support minimizing with jsmin before passing to closure webservice for closure_ws. (Closes #<I>)
py
diff --git a/idiotic/cluster.py b/idiotic/cluster.py index <HASH>..<HASH> 100644 --- a/idiotic/cluster.py +++ b/idiotic/cluster.py @@ -397,6 +397,7 @@ class Node: log.debug(await request.json()) except: log.exception("Exception occurred in r...
Re-queue event if sending it fails
py
diff --git a/salt/states/file.py b/salt/states/file.py index <HASH>..<HASH> 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -3283,12 +3283,13 @@ def append(name, try: for chunk in text: - - if ignore_whitespace and __salt__['file.search']( + if ignore_whitespace: + ...
Fix logic error in file.append The conditional in #<I> was incorrectly written. This properly nests the check for the ignore_whitespace flag.
py
diff --git a/pyrogram/api/core/object.py b/pyrogram/api/core/object.py index <HASH>..<HASH> 100644 --- a/pyrogram/api/core/object.py +++ b/pyrogram/api/core/object.py @@ -37,7 +37,7 @@ class Object: pass def __str__(self) -> str: - return dumps(self, indent=4, default=default) + return dum...
Don't ensure ascii when printing objects This will break in case of non-utf8 terminals
py
diff --git a/genmodel/manager.py b/genmodel/manager.py index <HASH>..<HASH> 100644 --- a/genmodel/manager.py +++ b/genmodel/manager.py @@ -152,11 +152,11 @@ def wait_for_droplet_to_be_created(droplet_uid): return status -def initizialize_job_in_database(job_name): - cur.execute("INSERT INTO jobs (name,state...
add hash to initialize job in database method for manager
py
diff --git a/soundscrape/soundscrape.py b/soundscrape/soundscrape.py index <HASH>..<HASH> 100755 --- a/soundscrape/soundscrape.py +++ b/soundscrape/soundscrape.py @@ -319,6 +319,9 @@ def download_file(url, path): Download an individual file. """ + if url[0:2] == '//': + url = 'https://' + url[2:] ...
Appears to fix #<I>
py
diff --git a/flask_sqlalchemy/__init__.py b/flask_sqlalchemy/__init__.py index <HASH>..<HASH> 100644 --- a/flask_sqlalchemy/__init__.py +++ b/flask_sqlalchemy/__init__.py @@ -342,6 +342,8 @@ class Pagination(object): @property def prev_num(self): """Number of the previous page.""" + if not sel...
Fix next_num and prev_num showing non existant page nums (#<I>)
py
diff --git a/iso4217parse/__init__.py b/iso4217parse/__init__.py index <HASH>..<HASH> 100644 --- a/iso4217parse/__init__.py +++ b/iso4217parse/__init__.py @@ -177,7 +177,8 @@ def by_symbol(symbol, country_code=None): if tmp_res: return tmp_res - return res + if country_code is None...
Prevent false positives when country_code is supplied (#5)
py
diff --git a/digsandpaper/coarse/generate/query_compiler_component.py b/digsandpaper/coarse/generate/query_compiler_component.py index <HASH>..<HASH> 100644 --- a/digsandpaper/coarse/generate/query_compiler_component.py +++ b/digsandpaper/coarse/generate/query_compiler_component.py @@ -520,7 +520,7 @@ class Elasticsear...
Don't add exists filters to sub queries
py
diff --git a/boolean/test_boolean.py b/boolean/test_boolean.py index <HASH>..<HASH> 100644 --- a/boolean/test_boolean.py +++ b/boolean/test_boolean.py @@ -606,6 +606,10 @@ class NOTTestCase(unittest.TestCase): self.assertEqual((~ ~ ~(a & b | c)).demorgan(), ~(a & b) & ~c) self.assertEqual(algebra.pars...
test case for demorgan with TRUE/FALSE
py