diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/dbt/parser.py b/dbt/parser.py index <HASH>..<HASH> 100644 --- a/dbt/parser.py +++ b/dbt/parser.py @@ -612,11 +612,12 @@ def parse_archives_from_project(project): config['source_schema'] = archive_config.get('source_schema') config['target_schema'] = archive_config.get('target_sche...
give fake path to archive model to avoid annoying warning
py
diff --git a/testing/test_method_equivalence.py b/testing/test_method_equivalence.py index <HASH>..<HASH> 100644 --- a/testing/test_method_equivalence.py +++ b/testing/test_method_equivalence.py @@ -1,3 +1,4 @@ +from __future__ import print_function import GPflow import numpy as np import unittest @@ -35,11 +36,12 @...
tring to speed up method_equivalence tests
py
diff --git a/test_windows/test_pipenv.py b/test_windows/test_pipenv.py index <HASH>..<HASH> 100644 --- a/test_windows/test_pipenv.py +++ b/test_windows/test_pipenv.py @@ -64,9 +64,6 @@ class TestPipenvWindows(): '-e git+https://github.com/kennethreitz/tablib.git@v0.11.5#egg=tablib\n' ...
added some debug statements and removed some debug statements that were causing a test to fail
py
diff --git a/geminipy.py b/geminipy.py index <HASH>..<HASH> 100644 --- a/geminipy.py +++ b/geminipy.py @@ -32,7 +32,7 @@ class Geminipy(object): Arguments: api_key -- your Gemini API key secret_key -- your Gemini API secret key for signatures - live -- use the live API or the Sandbox A...
minor docstring corrections; wording/spelling
py
diff --git a/platforms.py b/platforms.py index <HASH>..<HASH> 100644 --- a/platforms.py +++ b/platforms.py @@ -13,6 +13,17 @@ from zipfile import ZipFile, ZipInfo, ZIP_DEFLATED, is_zipfile, BadZipfile ALL_SYSTEMS = ["windows", "darwin", "linux"] + +def get_os_name(): + try: + return ", ".join(platform.un...
Start removing dependencies of securesync on anything but annoying and fle_utils
py
diff --git a/tests/test_io.py b/tests/test_io.py index <HASH>..<HASH> 100644 --- a/tests/test_io.py +++ b/tests/test_io.py @@ -34,6 +34,9 @@ class str_containing: def __eq__(self, other): return isinstance(other, str) and self._substr in other + def __repr__(self): + return f'string containing...
Test for new I/O pattern Tested different output encodings locally, looks good.
py
diff --git a/h2o-py/h2o/tree/tree.py b/h2o-py/h2o/tree/tree.py index <HASH>..<HASH> 100644 --- a/h2o-py/h2o/tree/tree.py +++ b/h2o-py/h2o/tree/tree.py @@ -242,7 +242,7 @@ class H2OSplitNode(H2ONode): self._right_child = right_child self._split_feature = split_feature self._na_direction = na_d...
Fixed a comma causing left categoricals levels to be considered a tuple (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ from setuptools import setup setup( name='Flask-HTMLmin', - version='1.0', + version='1.1', url='https://github.com/hamidfzm/Flask-HTMLmin', license='BSD', author='Hamid FzM', @@ -37...
update package version to <I>
py
diff --git a/spacy/tests/spans/test_span.py b/spacy/tests/spans/test_span.py index <HASH>..<HASH> 100644 --- a/spacy/tests/spans/test_span.py +++ b/spacy/tests/spans/test_span.py @@ -89,3 +89,10 @@ def test_spans_are_hashable(en_tokenizer): span3 = tokens[0:2] assert hash(span3) == hash(span1) + +def test_...
Add test for Doc.char_span
py
diff --git a/digitalocean/Manager.py b/digitalocean/Manager.py index <HASH>..<HASH> 100644 --- a/digitalocean/Manager.py +++ b/digitalocean/Manager.py @@ -18,11 +18,13 @@ class Manager(BaseAPI): """ Customized version of get_data to perform __check_actions_in_data """ - data = supe...
Increase per_page to <I> per_page was increased to the maximum of <I> elements per page, to speed up large requests.
py
diff --git a/openpnm/algorithms/GenericTransport.py b/openpnm/algorithms/GenericTransport.py index <HASH>..<HASH> 100644 --- a/openpnm/algorithms/GenericTransport.py +++ b/openpnm/algorithms/GenericTransport.py @@ -6,6 +6,7 @@ from scipy.spatial import cKDTree from openpnm.topotools import iscoplanar from openpnm.alg...
Auto tolerance setting for iterative solvers
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ from setuptools import Command MAJOR = 0 MINOR = 9 MICRO = 0 -ISRELEASED = True +ISRELEASED = False VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO) QUALIFIER = 'rc1'
revert to non-released version
py
diff --git a/niworkflows/anat/ants.py b/niworkflows/anat/ants.py index <HASH>..<HASH> 100644 --- a/niworkflows/anat/ants.py +++ b/niworkflows/anat/ants.py @@ -69,11 +69,11 @@ def init_brain_extraction_wf( 2. Maps the brain mask into target space using the normalization calculated in 1. 3. Supers...
Apply suggestions from code review [skip ci]
py
diff --git a/gwpy/io/datafind.py b/gwpy/io/datafind.py index <HASH>..<HASH> 100755 --- a/gwpy/io/datafind.py +++ b/gwpy/io/datafind.py @@ -279,7 +279,6 @@ def _type_priority(ifo, ftype, trend=None): SECOND_TREND_TYPE: 10, }.items(): if reg.search(ftype): - print(ftype, reg.pattern)...
gwpy.io: removed rogue print call
py
diff --git a/master/buildbot/steps/vstudio.py b/master/buildbot/steps/vstudio.py index <HASH>..<HASH> 100644 --- a/master/buildbot/steps/vstudio.py +++ b/master/buildbot/steps/vstudio.py @@ -379,6 +379,13 @@ class VC11(VC10): VS2012 = VC11 +# VC12 doesn't look like it needs extra stuff. +class VC12(VC11): + def...
Add build steps for VC<I>, VS<I>, and MsBuild<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,9 +9,7 @@ from distutils.core import setup, Extension requires = ['pillow'] -kw = { 'zip_safe': False, - 'install_requires': requires - } +kw = {'install_requires': requires} def read(fname): return ...
submission to pypi OK
py
diff --git a/pdf/conduit/convert/pdf2img.py b/pdf/conduit/convert/pdf2img.py index <HASH>..<HASH> 100644 --- a/pdf/conduit/convert/pdf2img.py +++ b/pdf/conduit/convert/pdf2img.py @@ -78,7 +78,7 @@ class PDF2IMG: output_file = add_suffix(self.file_name, str(index), ext=self.ext) return os.path....
Replaced '.png' with self.suffix
py
diff --git a/pypika/__init__.py b/pypika/__init__.py index <HASH>..<HASH> 100644 --- a/pypika/__init__.py +++ b/pypika/__init__.py @@ -83,4 +83,4 @@ from pypika.utils import ( __author__ = 'Timothy Heys' __email__ = 'theys@kayak.com' -__version__ = '0.32.0' +__version__ = '0.33.0'
Bumped version to <I>
py
diff --git a/devassistant/command_helpers.py b/devassistant/command_helpers.py index <HASH>..<HASH> 100644 --- a/devassistant/command_helpers.py +++ b/devassistant/command_helpers.py @@ -123,10 +123,8 @@ class YUMHelper(object): input = raw_input except NameError: pass - yes = ...
Added question in case of package installation
py
diff --git a/clinto/parsers/argparse_.py b/clinto/parsers/argparse_.py index <HASH>..<HASH> 100644 --- a/clinto/parsers/argparse_.py +++ b/clinto/parsers/argparse_.py @@ -267,15 +267,14 @@ class ArgParseParser(BaseParser): containers = OrderedDict() for action in parser._actions: - ...
Move check for SUPPRESS below version detection for python3
py
diff --git a/pygogogate2/__init__.py b/pygogogate2/__init__.py index <HASH>..<HASH> 100644 --- a/pygogogate2/__init__.py +++ b/pygogogate2/__init__.py @@ -130,7 +130,7 @@ class Gogogate2API: return self.activate(device_id) -BS = 8 +BS = 16 pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS) un...
Change blocksize to <I>
py
diff --git a/PySimpleGUI.py b/PySimpleGUI.py index <HASH>..<HASH> 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1703,6 +1703,7 @@ class Button(Element): print('Button.Update *** WARNING - Button colors are not supported on the Mac***') if button_color != (None, None): ...
Updated Button.ButtonColor when Updating so can retrieve at runtime.
py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index <HASH>..<HASH> 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1346,7 +1346,7 @@ class DataFrame(NDFrame): file quoting : optional constant from csv module defaults to csv.QUOTE_MINIMAL. If you have set a ...
doc: comverted --> converted (#<I>)
py
diff --git a/checker/tests/result_test.py b/checker/tests/result_test.py index <HASH>..<HASH> 100644 --- a/checker/tests/result_test.py +++ b/checker/tests/result_test.py @@ -543,12 +543,14 @@ class FontForgeSimpleTest(TestCase): @tags('required') def test_menu_file_is_font(self): """ Menu file have ...
Fix test to check that font files exist before asserting
py
diff --git a/paypal/countries.py b/paypal/countries.py index <HASH>..<HASH> 100644 --- a/paypal/countries.py +++ b/paypal/countries.py @@ -5,7 +5,7 @@ http://xml.coverpages.org/country3166.html A tuple of tuples of country codes and their full names. There are a few helper functions provided if you'd rather not us...
typo in docstring: t_countries.py => test_countries.py
py
diff --git a/pylatex/utils.py b/pylatex/utils.py index <HASH>..<HASH> 100644 --- a/pylatex/utils.py +++ b/pylatex/utils.py @@ -21,7 +21,7 @@ _latex_special_chars = { '~': r'\textasciitilde{}', '^': r'\^{}', '\\': r'\textbackslash{}', - '\n': r'\\\\', + '\n': r'\\', '-': r'{-}', }
fix newline escaping In Python 3 r'\\\\' is four backslashes, and r'\\' is two backslashes.
py
diff --git a/src/scout_apm/core/metadata.py b/src/scout_apm/core/metadata.py index <HASH>..<HASH> 100644 --- a/src/scout_apm/core/metadata.py +++ b/src/scout_apm/core/metadata.py @@ -51,9 +51,7 @@ def get_python_packages_versions(): except ImportError: return [] - return list( - sorted( - ...
Fix for upgraded flake8-comprehensions (#<I>) Now it errors on `list(sorted(x))` because `sorted()` already returns a list.
py
diff --git a/container/__init__.py b/container/__init__.py index <HASH>..<HASH> 100644 --- a/container/__init__.py +++ b/container/__init__.py @@ -5,4 +5,4 @@ import logging logger = logging.getLogger(__name__) -__version__ = '0.1.0' +__version__ = '0.2.0-pre'
Increment version to <I>-pre
py
diff --git a/models.py b/models.py index <HASH>..<HASH> 100644 --- a/models.py +++ b/models.py @@ -18,14 +18,17 @@ class Mixture(ModelGibbsSampling, ModelMeanField, ModelEM): ''' This class is for mixtures of other distributions. ''' - def __init__(self,components,alpha_0=None,a_0=None,b_0=None,weight...
added weights_obj arg to Mixture init
py
diff --git a/theanets/recurrent.py b/theanets/recurrent.py index <HASH>..<HASH> 100644 --- a/theanets/recurrent.py +++ b/theanets/recurrent.py @@ -77,6 +77,8 @@ class Network(ff.Network): ''' def __init__(self, layers, activation, rng=None, **kwargs): + self.layers = tuple(layers) + self.activ...
Update recurrent network base class to build its own activation function.
py
diff --git a/leonardo/utils/settings.py b/leonardo/utils/settings.py index <HASH>..<HASH> 100644 --- a/leonardo/utils/settings.py +++ b/leonardo/utils/settings.py @@ -50,14 +50,15 @@ def get_leonardo_modules(): for package in installed_packages: # check for default descriptor - pkg_name = [k for ...
fix more than one package inside python package
py
diff --git a/pipenv/__init__.py b/pipenv/__init__.py index <HASH>..<HASH> 100644 --- a/pipenv/__init__.py +++ b/pipenv/__init__.py @@ -8,7 +8,7 @@ import sys # Inject vendored directory into system path. v_path = os.path.sep.join([os.path.dirname(os.path.realpath(__file__)), 'vendor']) -sys.path.append(v_path) +sys...
use sys.path.insert(1, v_path) instead of sys.path.append(v_path) packages under vendor/ should be used than that installed by pip.
py
diff --git a/devassistant/argument.py b/devassistant/argument.py index <HASH>..<HASH> 100644 --- a/devassistant/argument.py +++ b/devassistant/argument.py @@ -79,7 +79,7 @@ class Argument(object): snippet = yaml_snippet_loader.YamlSnippetLoader.get_snippet_by_name(use_snippet) # this w...
Revert the previous modification of pop to get in Argument; pop is ok here.
py
diff --git a/inginious/frontend/webapp/pages/course.py b/inginious/frontend/webapp/pages/course.py index <HASH>..<HASH> 100644 --- a/inginious/frontend/webapp/pages/course.py +++ b/inginious/frontend/webapp/pages/course.py @@ -50,7 +50,7 @@ class CoursePage(INGIniousAuthPage): submission["taskname"...
Only find user_tasks for still existing tasks
py
diff --git a/Lib/fontParts/objects/base/base.py b/Lib/fontParts/objects/base/base.py index <HASH>..<HASH> 100644 --- a/Lib/fontParts/objects/base/base.py +++ b/Lib/fontParts/objects/base/base.py @@ -1,8 +1,11 @@ import math from copy import deepcopy -from fontTools.misc import transform -from errors import FontPartsE...
Trying to get RTD to compile the docs.
py
diff --git a/raiden/transfer/node.py b/raiden/transfer/node.py index <HASH>..<HASH> 100644 --- a/raiden/transfer/node.py +++ b/raiden/transfer/node.py @@ -1171,7 +1171,11 @@ def is_transaction_effect_satisfied( TokenNetworkID(state_change.token_network_identifier), partner_address, ...
Added docstrings to the check for channel is none
py
diff --git a/tests/unit/test_instructions.py b/tests/unit/test_instructions.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_instructions.py +++ b/tests/unit/test_instructions.py @@ -633,15 +633,6 @@ class TestCallOperator(tests.TestCase): self.assertFalse(call_op1.__eq__(call_op3)) self.assertFal...
Drop some commented out code When rewriting the CallOperator when implementing the "rule()" function, the test_op() test function was commented out, when it should have been removed. This drops the dead code.
py
diff --git a/horizon/horizon/views/auth_forms.py b/horizon/horizon/views/auth_forms.py index <HASH>..<HASH> 100644 --- a/horizon/horizon/views/auth_forms.py +++ b/horizon/horizon/views/auth_forms.py @@ -59,7 +59,7 @@ class Login(forms.SelfHandlingForm): Subclass of :class:`~horizon.forms.SelfHandlingForm`. ...
Allow login post without region in POST data. Handles an edge case where users trying to log in to the dashboard programmatically may not wish to specify the region endpoint in the POST data. Fixes bug <I>. Change-Id: If4dc8ba8bc5b<I>eb5ecee<I>a5d<I>b<I>b<I>
py
diff --git a/rest_framework_simplejwt/serializers.py b/rest_framework_simplejwt/serializers.py index <HASH>..<HASH> 100644 --- a/rest_framework_simplejwt/serializers.py +++ b/rest_framework_simplejwt/serializers.py @@ -20,6 +20,10 @@ class PasswordField(serializers.CharField): class TokenObtainSerializer(serializers.S...
Use self.fail method in TokenObtainSerializer
py
diff --git a/claripy/vsa/strided_interval.py b/claripy/vsa/strided_interval.py index <HASH>..<HASH> 100644 --- a/claripy/vsa/strided_interval.py +++ b/claripy/vsa/strided_interval.py @@ -1979,19 +1979,21 @@ class StridedInterval(BackendObject): @reversed_processor def cast_low(self, tok): assert tok ...
removed debug code and fixed corner case in cast_low
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 @@ -308,7 +308,7 @@ class SimSymbolicMemory(SimMemory): #pylint:disable=abstract-method size = self.state.se.any_i...
include names of symbolic vars for unconstrained returns in case of AVOID_MULTIVALUED_READS
py
diff --git a/cherrypy/test/test_dynamicobjectmapping.py b/cherrypy/test/test_dynamicobjectmapping.py index <HASH>..<HASH> 100644 --- a/cherrypy/test/test_dynamicobjectmapping.py +++ b/cherrypy/test/test_dynamicobjectmapping.py @@ -21,6 +21,10 @@ def setup_server(): return "SubSubRoot handler" hand...
#<I> - Test proving that this won't break current web applications that use dispatch as a name for their controllers.
py
diff --git a/simplekv/decorator.py b/simplekv/decorator.py index <HASH>..<HASH> 100644 --- a/simplekv/decorator.py +++ b/simplekv/decorator.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # coding=utf8 -from itertools import imap +from six.moves import map class StoreDecorator(object): @@ -37,7 +37,7 @@ class KeyTran...
Use six for Python3 compatibility in PrefixDecorator.
py
diff --git a/chalice/cli/__init__.py b/chalice/cli/__init__.py index <HASH>..<HASH> 100644 --- a/chalice/cli/__init__.py +++ b/chalice/cli/__init__.py @@ -36,9 +36,7 @@ from chalice.local import LocalDevServer # noqa from chalice.constants import DEFAULT_HANDLER_NAME from chalice.invoke import UnhandledLambdaError ...
Remove graphbuilder use in swagger generation command
py
diff --git a/backrefs/bre.py b/backrefs/bre.py index <HASH>..<HASH> 100644 --- a/backrefs/bre.py +++ b/backrefs/bre.py @@ -17,8 +17,8 @@ Add the ability to use the following backrefs with re: - `\N{Black Club Suit}` - Unicode character by name (search & replace) - `\u0000` an...
Update internal comment Mention proper notation for word boundaries.
py
diff --git a/src/_pytest/python.py b/src/_pytest/python.py index <HASH>..<HASH> 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -166,7 +166,8 @@ def async_warn(nodeid: str) -> None: ) msg += " - pytest-asyncio\n" msg += " - pytest-trio\n" - msg += " - pytest-tornasync" + msg +=...
Add pytest-twisted to list of async def handling plugins <URL> supports `async def` test functions and fixtures as well as `async def`/`yield` fixtures.
py
diff --git a/jinja2_highlight/highlight.py b/jinja2_highlight/highlight.py index <HASH>..<HASH> 100644 --- a/jinja2_highlight/highlight.py +++ b/jinja2_highlight/highlight.py @@ -52,7 +52,7 @@ class HighlightExtension(Extension): # extract the language and line numbering setting if available if not ...
Made a few comments a bit clearer
py
diff --git a/pynubank/utils/mock_http.py b/pynubank/utils/mock_http.py index <HASH>..<HASH> 100644 --- a/pynubank/utils/mock_http.py +++ b/pynubank/utils/mock_http.py @@ -1,10 +1,10 @@ -import os -import json import fnmatch +import json from pathlib import Path -from pynubank.utils.http import HttpClient -from pynuba...
fix: warning for unclosed resource file on MockHtttpClient
py
diff --git a/fireplace/game.py b/fireplace/game.py index <HASH>..<HASH> 100644 --- a/fireplace/game.py +++ b/fireplace/game.py @@ -31,6 +31,9 @@ class Game(Entity): return "Uninitialized Game" return "%r vs %r" % (self.players[0], self.players[1]) + def __iter__(self): + return self.allEntities.__iter__() + ...
Implement Game.allEntities and make Game iterable with it
py
diff --git a/example/idp2/idp_conf.py b/example/idp2/idp_conf.py index <HASH>..<HASH> 100644 --- a/example/idp2/idp_conf.py +++ b/example/idp2/idp_conf.py @@ -77,7 +77,7 @@ CONFIG = { "lifetime": {"minutes": 15}, "attribute_restrictions": None, # means all I have ...
Fixed wrongly spelled entity category
py
diff --git a/goodtables/datatable/datatable.py b/goodtables/datatable/datatable.py index <HASH>..<HASH> 100644 --- a/goodtables/datatable/datatable.py +++ b/goodtables/datatable/datatable.py @@ -233,7 +233,7 @@ class DataTable(object): def _detect_stream_encoding(self, stream): """Return best guess at enc...
Increase sample size for charset detection to a more reasonable value
py
diff --git a/vprof/flame_graph.py b/vprof/flame_graph.py index <HASH>..<HASH> 100644 --- a/vprof/flame_graph.py +++ b/vprof/flame_graph.py @@ -13,7 +13,7 @@ _SAMPLE_INTERVAL = 0.001 class _StatProfiler: """Statistical profiler. - Samples call stack at regulal intervals specified by _SAMPLE_INTERVAL. + Sam...
Fix simple typo: regulal -> regular Closes #<I>
py
diff --git a/local/pyauto/local/__init__.py b/local/pyauto/local/__init__.py index <HASH>..<HASH> 100644 --- a/local/pyauto/local/__init__.py +++ b/local/pyauto/local/__init__.py @@ -1 +1 @@ -__version__ = '0.1.0a2' +__version__ = '0.1.0a3'
version local-<I>a3
py
diff --git a/insights/specs/default.py b/insights/specs/default.py index <HASH>..<HASH> 100644 --- a/insights/specs/default.py +++ b/insights/specs/default.py @@ -387,7 +387,7 @@ class DefaultSpecs(Specs): keystone_crontab = simple_command("/usr/bin/crontab -l -u keystone") keystone_crontab_container = simple...
Update spec for krb5 (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,6 @@ # -*- coding: utf-8 -*- from setuptools import setup, find_packages # pylint: disable=no-name-in-module,import-error -def readme(): - with open('README.md') as f: - return f.read() - def dependenci...
Version: Bumped to <I> and change in documentation
py
diff --git a/host/scan/scan.py b/host/scan/scan.py index <HASH>..<HASH> 100644 --- a/host/scan/scan.py +++ b/host/scan/scan.py @@ -123,8 +123,6 @@ class ScanBase(object): self.use_thread = None self.restore_configuration = None - self.write_scan_number() - @property def is_run...
BUG: write scan number during start(), not during init()
py
diff --git a/vtki/common.py b/vtki/common.py index <HASH>..<HASH> 100644 --- a/vtki/common.py +++ b/vtki/common.py @@ -93,6 +93,16 @@ class Common(DataSetFilters): self.GetPointData().SetTCoords(vtkarr) return + @property + def textures(self): + """A dictionary to hold ``vtk.vtkTexture`...
Add a textures property to keep track of associated textures
py
diff --git a/src/hamster/db.py b/src/hamster/db.py index <HASH>..<HASH> 100644 --- a/src/hamster/db.py +++ b/src/hamster/db.py @@ -73,6 +73,14 @@ class Storage(storage.Storage): print "DB file has been modified externally. Calling all stations" self.dispatch_overwrite() + ...
"plan b" and "oldtimer" trophies
py
diff --git a/test/test_variant_collection.py b/test/test_variant_collection.py index <HASH>..<HASH> 100644 --- a/test/test_variant_collection.py +++ b/test/test_variant_collection.py @@ -133,7 +133,6 @@ def test_variant_collection_serialization(): merged_reconstructed = pickle.loads(pickle.dumps(merged)) eq_(...
add addl merged collection serialization tests
py
diff --git a/nx/viper/config.py b/nx/viper/config.py index <HASH>..<HASH> 100644 --- a/nx/viper/config.py +++ b/nx/viper/config.py @@ -111,13 +111,22 @@ class Config: if envVariableType == "STR": destinationDictionary[key] = str(os.environ[envVariableName]) ...
-environment variables of boolean type must containt the value 1 or 0 (as string) -environment variables of JSON type that contain an invalid value will throw a warning
py
diff --git a/pymatgen/analysis/phase_diagram.py b/pymatgen/analysis/phase_diagram.py index <HASH>..<HASH> 100644 --- a/pymatgen/analysis/phase_diagram.py +++ b/pymatgen/analysis/phase_diagram.py @@ -28,7 +28,6 @@ from pymatgen.util.string import latexify from pymatgen.util.plotting import pretty_plot from pymatgen.an...
avoid importing palettable (#<I>)
py
diff --git a/tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py b/tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py index <HASH>..<HASH> 100644 --- a/tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py +++ b/tools/azure-devtools/src/azu...
[Test] patch (#<I>)
py
diff --git a/neo.py b/neo.py index <HASH>..<HASH> 100755 --- a/neo.py +++ b/neo.py @@ -123,7 +123,7 @@ class ProcessException(Exception): def popen(command, stdin=None, **kwargs): # print for debugging - log("Exec "+' '.join(command)) + log('"'+' '.join(command)+'"') proc = subprocess.Popen(command, ...
Fixed behavior of pull, where the old behavior was effectively fetch+checkout
py
diff --git a/SoftLayer/API.py b/SoftLayer/API.py index <HASH>..<HASH> 100644 --- a/SoftLayer/API.py +++ b/SoftLayer/API.py @@ -273,7 +273,8 @@ class TimedClient(Client): def call(self, service, method, *args, **kwargs): """ See Client.call for documentation. """ start_time = datetime.datetime.now...
Adding missing asterisk that was preventing calls with arguments from working
py
diff --git a/actions/gff.py b/actions/gff.py index <HASH>..<HASH> 100644 --- a/actions/gff.py +++ b/actions/gff.py @@ -11,8 +11,10 @@ class GffIterator(Target): def init(self): self.parser = iter(GffIteratorParser(self.get_filename())) - def next(self): + def calculate(self): entry = self...
skipped non gene genomic feature in gff iterator
py
diff --git a/discord/embeds.py b/discord/embeds.py index <HASH>..<HASH> 100644 --- a/discord/embeds.py +++ b/discord/embeds.py @@ -273,11 +273,11 @@ class Embed: total += len(field['name']) + len(field['value']) try: - footer = self._footer - except AttributeError: + ...
Fix bug in Embed.__len__ caused by footer without text
py
diff --git a/openstatesapi/people.py b/openstatesapi/people.py index <HASH>..<HASH> 100644 --- a/openstatesapi/people.py +++ b/openstatesapi/people.py @@ -114,7 +114,7 @@ class OpenstatesPersonScraper(OpenstatesBaseScraper): name = old.pop('full_name') party = old.pop('party', None) - if part...
parties w only a space now appropriately handled
py
diff --git a/epc/tests/test_server.py b/epc/tests/test_server.py index <HASH>..<HASH> 100644 --- a/epc/tests/test_server.py +++ b/epc/tests/test_server.py @@ -60,7 +60,7 @@ class TestEPCServer(unittest.TestCase): reply = self.receive_message() self.assertEqual(reply[0], Symbol('epc-error')) s...
Make a failing test pass on Python <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,13 @@ setup( zip_safe=False, classifiers=['Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', + 'Operating System :: OS Independent', ...
Added OS and Python version description to setup.py
py
diff --git a/animanager/cmd/__init__.py b/animanager/cmd/__init__.py index <HASH>..<HASH> 100644 --- a/animanager/cmd/__init__.py +++ b/animanager/cmd/__init__.py @@ -148,6 +148,10 @@ class ArgumentParser(argparse.ArgumentParser): """ArgumentParser customized for Animanager's CLI.""" + def __init__(self, *a...
Disable help flag on command parsing
py
diff --git a/notario/decorators.py b/notario/decorators.py index <HASH>..<HASH> 100644 --- a/notario/decorators.py +++ b/notario/decorators.py @@ -58,7 +58,8 @@ def not_empty(_object): @instance_of() def decorated(value): - assert value, "is empty" + name = getattr(value, '__na...
is_empty has a better failure message
py
diff --git a/tests/parser_tests.py b/tests/parser_tests.py index <HASH>..<HASH> 100644 --- a/tests/parser_tests.py +++ b/tests/parser_tests.py @@ -568,6 +568,15 @@ def test_multi_grid_json(): check_metadata(grid_list[1], force_metadata_order=False) check_null(grid_list[2]) +def test_multi_grid_json_str(): +...
parser tests: Add test for multiple JSON strings in a list.
py
diff --git a/polyaxon/polyaxon/config_settings/versions.py b/polyaxon/polyaxon/config_settings/versions.py index <HASH>..<HASH> 100644 --- a/polyaxon/polyaxon/config_settings/versions.py +++ b/polyaxon/polyaxon/config_settings/versions.py @@ -21,4 +21,4 @@ LIB_LATEST_VERSION = config.get_string('POLYAXON_LIB_LATEST_VER...
Fix type of env variable is chart upgrade
py
diff --git a/can/interfaces/vector/canlib.py b/can/interfaces/vector/canlib.py index <HASH>..<HASH> 100644 --- a/can/interfaces/vector/canlib.py +++ b/can/interfaces/vector/canlib.py @@ -484,6 +484,7 @@ class VectorBus(BusABC): "interface": "vector", "app_name": None, ...
provide CAN FD support information in config detection
py
diff --git a/cherrypy/test/test_wsgi_unix_socket.py b/cherrypy/test/test_wsgi_unix_socket.py index <HASH>..<HASH> 100644 --- a/cherrypy/test/test_wsgi_unix_socket.py +++ b/cherrypy/test/test_wsgi_unix_socket.py @@ -2,6 +2,7 @@ import os import sys import socket import atexit +import tempfile import cherrypy from...
Create the unix socket in a temporary dir, as the directory for the tests may not be suitable for creating a unix socket. Fixes #<I>.
py
diff --git a/fingerprint/detect.py b/fingerprint/detect.py index <HASH>..<HASH> 100644 --- a/fingerprint/detect.py +++ b/fingerprint/detect.py @@ -849,6 +849,8 @@ class IontFingerprinter(object): js_base['type'] = 'pgp' js_base['fname'] = name js_base['fname_idx'] = file_idx + js_base[...
return also pgp master key info
py
diff --git a/trepan/processor/command/bpy.py b/trepan/processor/command/bpy.py index <HASH>..<HASH> 100644 --- a/trepan/processor/command/bpy.py +++ b/trepan/processor/command/bpy.py @@ -72,7 +72,7 @@ Use dbgr(*string*) to issue debugger command: *string*''' my_locals = {} my_globals = None ...
pyflakes lint thing.
py
diff --git a/ropetest/refactor/renametest.py b/ropetest/refactor/renametest.py index <HASH>..<HASH> 100644 --- a/ropetest/refactor/renametest.py +++ b/ropetest/refactor/renametest.py @@ -172,6 +172,14 @@ class RenameRefactoringTest(unittest.TestCase): self.assertEquals('async def new_func():\n pass\nnew_fun...
Added test for renaming in presence of await.
py
diff --git a/ropetest/projecttest.py b/ropetest/projecttest.py index <HASH>..<HASH> 100644 --- a/ropetest/projecttest.py +++ b/ropetest/projecttest.py @@ -1,5 +1,6 @@ import os import os.path +import shutil try: import unittest2 as unittest except ImportError: @@ -226,6 +227,7 @@ class ProjectTest(unittest.Tes...
Clean up test directory after test run.
py
diff --git a/shopify/resources/product.py b/shopify/resources/product.py index <HASH>..<HASH> 100644 --- a/shopify/resources/product.py +++ b/shopify/resources/product.py @@ -36,7 +36,7 @@ class Product(ShopifyResource, mixins.Metafields, mixins.Events): api_version = ShopifyResource.version if api_ve...
Amended pull request #<I> to allow saving of products with no variants
py
diff --git a/capidup/finddups.py b/capidup/finddups.py index <HASH>..<HASH> 100644 --- a/capidup/finddups.py +++ b/capidup/finddups.py @@ -258,12 +258,13 @@ def find_duplicates_in_dirs(directories): `errors` is a list of error messages that occurred. If empty, there were no errors. - For example, assumin...
find_duplicates_in_dirs: Fix documentation example. Wrong function name in example. Relative paths suggest 'dir1' and 'dir2' are subdirectories of '.', which is already in the list of dirs to scan.
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 @@ -2408,6 +2408,7 @@ def matmul(a, b, precision=None): # pylint: disable=missing-docstring if shape(a)[0 if a_is_vec else -1] != shape(b)[0 if b_is_vec else -2]: m...
Fix missing type promotion accidentally removed by #<I>. (#<I>) This is in fact covered by the existing tests, but we were unlucky and didn't hit them in the set of generated tests we selected.
py
diff --git a/ibis/client.py b/ibis/client.py index <HASH>..<HASH> 100644 --- a/ibis/client.py +++ b/ibis/client.py @@ -391,6 +391,8 @@ class ImpalaClient(SQLClient): t = _impala_type_mapping.get(t, t) ibis_types.append(t) + names = [x.lower() for x in names] + return ir.Schem...
BUG: always lowercase Impala schemas per discussion in #<I>, #<I>, #<I> I discovered that changes to the Avro file code path in Impala caused the case of field names in the declared avro record schema to be preserved in the metastore rather than converted to lowercase. Thus, Ibis code written against older versions of...
py
diff --git a/src/arcrest/agol/services.py b/src/arcrest/agol/services.py index <HASH>..<HASH> 100644 --- a/src/arcrest/agol/services.py +++ b/src/arcrest/agol/services.py @@ -1770,14 +1770,14 @@ class FeatureLayer(abstract.BaseAGOLClass): params['units'] = units if timeFilter and \ isi...
corrected issue for feature layer queries to accept dictionary inputs for geometry filters. Relates to issue #<I>
py
diff --git a/tests/test_fs_watcher.py b/tests/test_fs_watcher.py index <HASH>..<HASH> 100644 --- a/tests/test_fs_watcher.py +++ b/tests/test_fs_watcher.py @@ -15,7 +15,7 @@ import logging logger = logging.getLogger(__name__) -CHECK_DELAY = 0.1 +CHECK_DELAY = 5.0 class TestFileSystemWatcher(AsyncTestCase):
increasing check delay for fs watcher unit test to an absurdly high 5s
py
diff --git a/pypsa/opf.py b/pypsa/opf.py index <HASH>..<HASH> 100644 --- a/pypsa/opf.py +++ b/pypsa/opf.py @@ -995,6 +995,14 @@ def define_nodal_balances(network,snapshots): efficiency = get_switchable_as_dense(network, 'Link', 'efficiency', snapshots) + filter = ( + (get_switchable_as_dense(network,...
Add warning message for links In case a bidirectional link is defined with an efficiency value lower than 1, the logger will prompt a warning hinting the user of a (maybe) unintended behavior. If there are any links with such specification the respective links are listed.
py
diff --git a/mailutils.py b/mailutils.py index <HASH>..<HASH> 100644 --- a/mailutils.py +++ b/mailutils.py @@ -125,7 +125,7 @@ def send_email(fromaddr, server.quit() sent = True except (smtplib.SMTPException, socket.error): - register_exception(alert_admin=True) + ...
mailutils: fixed recursive exception bomb When it's impossible to send an email, do not alert admin when calling register_exception(), since the email sending facility might be totally compromized, thus causing a recursive exception bomb.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,9 +4,9 @@ monkeyhex.py is a small library to assist users of the python shell who work in Monkeyhex, as the name suggests, monkeypatches the system displayhook as well as the pprint and pdb modules to format integers as h...
switch to setuptools; tick again for good measure
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 @@ -514,7 +514,12 @@ class GDBServer(threading.Thread): def lastSignal(self): fault = self.target.readCoreRegister('xpsr') & ...
pyOCD/gdbserver: Fixed index out of range in lastSignal() It happens when the debugger had been stopped in a interrupt handler.
py
diff --git a/tests/test_objectives.py b/tests/test_objectives.py index <HASH>..<HASH> 100644 --- a/tests/test_objectives.py +++ b/tests/test_objectives.py @@ -184,10 +184,10 @@ class TestObjectives(unittest.TestCase): fit_exact_result = fit.execute() fit = Fit(logL_model, x=xdata, objective=LogLikelih...
Changed check to almost equal instead of equal.
py
diff --git a/angr/analyses/cfg.py b/angr/analyses/cfg.py index <HASH>..<HASH> 100644 --- a/angr/analyses/cfg.py +++ b/angr/analyses/cfg.py @@ -1333,12 +1333,18 @@ class CFG(Analysis, CFGBase): else: self._unresolved_indirect_jumps.add(simrun.addr) a...
Remove insane successors after symbolically resolving a symbolic target
py
diff --git a/napalm_eos/eos.py b/napalm_eos/eos.py index <HASH>..<HASH> 100644 --- a/napalm_eos/eos.py +++ b/napalm_eos/eos.py @@ -1623,21 +1623,23 @@ class EOSDriver(NetworkDriver): 'results' is a list of dictionaries with the following keys: * ip_address (str) * rtt (float) - - ...
added vrf support for ping()
py
diff --git a/route53/hosted_zone.py b/route53/hosted_zone.py index <HASH>..<HASH> 100644 --- a/route53/hosted_zone.py +++ b/route53/hosted_zone.py @@ -34,12 +34,16 @@ class HostedZone(object): # Don't access this directly, we use it for lazy loading. self._nameservers = [] + def __str__(self): + ...
Added HostedZone.record_sets generator.
py
diff --git a/ibis/backends/clickhouse/tests/test_client.py b/ibis/backends/clickhouse/tests/test_client.py index <HASH>..<HASH> 100644 --- a/ibis/backends/clickhouse/tests/test_client.py +++ b/ibis/backends/clickhouse/tests/test_client.py @@ -163,8 +163,8 @@ def test_insert_with_more_columns(temporary_alltypes, df): ...
test(clickhouse): fix field nullability for new test cases
py
diff --git a/describe/value/values.py b/describe/value/values.py index <HASH>..<HASH> 100644 --- a/describe/value/values.py +++ b/describe/value/values.py @@ -196,6 +196,9 @@ class BaseValue(ValueInternals): self.expect(abs(self.value - value) < delta, "%(value)r %(should)s == %(other)r +/- %(delt...
Added type_of (alias to instance_of) and close_to (alias of be_close_to).
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,8 +20,6 @@ import shutil from os.path import isdir, exists, join try: - if os.environ.get('NO_SETUPTOOLS'): - raise ImportError() from setuptools import setup from setuptools.command import easy_ins...
Remove NO_SETUPTOOLS. Folks could just install setuptools before installing pylint. Close #<I>
py
diff --git a/kafka/codec.py b/kafka/codec.py index <HASH>..<HASH> 100644 --- a/kafka/codec.py +++ b/kafka/codec.py @@ -24,22 +24,17 @@ def has_snappy(): def gzip_encode(payload): - buffer = BytesIO() - handle = gzip.GzipFile(fileobj=buffer, mode="w") - handle.write(payload) - handle.close() - buffer...
Use context managers in gzip_encode / gzip_decode
py
diff --git a/kerncraft/models/ecm.py b/kerncraft/models/ecm.py index <HASH>..<HASH> 100755 --- a/kerncraft/models/ecm.py +++ b/kerncraft/models/ecm.py @@ -365,7 +365,7 @@ class ECM(object): # Full caching in higher cache level self.results['scaling cores'] = float('inf') else: - ...
more accurate core saturateion output
py
diff --git a/tests/test_addist.py b/tests/test_addist.py index <HASH>..<HASH> 100644 --- a/tests/test_addist.py +++ b/tests/test_addist.py @@ -50,7 +50,8 @@ class UnifTests: assert allclose(ps, (0, .677243580297, .962672033688), rtol=.5e-12) def test_inf(self): - # Values for pinf from doi:10.186...
Added values from the <I> Anderson and Darling paper as a comment. Marsaglia provides the same values to a higher precision, but the original deserves some mention too.
py
diff --git a/tests/test.py b/tests/test.py index <HASH>..<HASH> 100644 --- a/tests/test.py +++ b/tests/test.py @@ -1,17 +1,24 @@ from unittest import TextTestRunner from unittest import TestSuite from unittest import makeSuite -from unittest import defaultTestLoader as loader from label_visitor_test import LabelV...
Easy to add tests to the test suite now.
py