diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/pystache/tests/test_doctests.py b/pystache/tests/test_doctests.py index <HASH>..<HASH> 100644 --- a/pystache/tests/test_doctests.py +++ b/pystache/tests/test_doctests.py @@ -25,9 +25,12 @@ text_file_paths = ['README.rst'] # The following load_tests() function implements unittests's load_tests -# proto...
Added a code comment with a link to unittest's load_tests protocol.
py
diff --git a/jira/client.py b/jira/client.py index <HASH>..<HASH> 100755 --- a/jira/client.py +++ b/jira/client.py @@ -203,6 +203,11 @@ class JIRA(object): globals()['logging'].error("invalid server_info: %s", si) raise e + def __del__(self): + session = getattr(self, "_session", N...
Fix ResourceLeak warning with CPython3
py
diff --git a/AdvancedHTMLParser/Tags.py b/AdvancedHTMLParser/Tags.py index <HASH>..<HASH> 100644 --- a/AdvancedHTMLParser/Tags.py +++ b/AdvancedHTMLParser/Tags.py @@ -1367,7 +1367,7 @@ class AdvancedTag(object): if ' ' in className: # Multiple class names passed, do one at a time for ...
Fix removeClass should have been addClass
py
diff --git a/bulbs/content/elasticsearch.py b/bulbs/content/elasticsearch.py index <HASH>..<HASH> 100644 --- a/bulbs/content/elasticsearch.py +++ b/bulbs/content/elasticsearch.py @@ -1,6 +1,9 @@ """This module contains classes that help deal with ElasticSearch""" +from datetime import datetime from elasticutils imp...
Some bullshit date parsing
py
diff --git a/src/collectors/postgres/postgres.py b/src/collectors/postgres/postgres.py index <HASH>..<HASH> 100644 --- a/src/collectors/postgres/postgres.py +++ b/src/collectors/postgres/postgres.py @@ -17,7 +17,7 @@ try: except ImportError: psycopg2 = None -registry = {} +registry = dict(basic={}, extended={})...
Use correct registry for basic/extended metrics
py
diff --git a/tests/builder/fontinfo_test.py b/tests/builder/fontinfo_test.py index <HASH>..<HASH> 100644 --- a/tests/builder/fontinfo_test.py +++ b/tests/builder/fontinfo_test.py @@ -258,7 +258,7 @@ ufo_info_spec = [ # Corresponds to the OpenType OS/2 table selection field. # Note: Bits 0 (italic), 5 ...
Assume order in fontinfo test for fsSelection
py
diff --git a/tests/settings.py b/tests/settings.py index <HASH>..<HASH> 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -32,8 +32,8 @@ LOGGING = { import os HAYSTACK_CONNECTIONS = { 'default': { - 'ENGINE': 'haystack.backends.solr_backend.SolrEngine', - 'URL': 'http://127.0.0.1:8983/solr'...
Add whoosh to test settings
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ setup( packages=find_packages(), install_requires=['requests'], extras_require={'test': ['mock']}, - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + python_requires='>=2.7, !=...
Remove <I> and <I> from python_requires (and classifiers) to allow it to still install for those versions
py
diff --git a/salt/modules/win_pkg.py b/salt/modules/win_pkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_pkg.py +++ b/salt/modules/win_pkg.py @@ -536,6 +536,8 @@ def install(name=None, refresh=False, pkgs=None, saltenv='base', **kwargs): if not cached_pkg: # It's not cached. Cache...
Check file hash for the installer Checks to make sure the cached file is updated to the latest version or not
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -79,7 +79,7 @@ s3 = [ 'filechunkio>=1.6', ] samba = ['pysmbclient>=0.1.3'] -slack = ['slackclient>=0.15'] +slack = ['slackclient>=1.0.0'] statsd = ['statsd>=3.0.1, <4.0'] vertica = ['vertica-python>=0.5.1'] ldap = ['...
Cranking up slackclient dep to <I>
py
diff --git a/shader.py b/shader.py index <HASH>..<HASH> 100644 --- a/shader.py +++ b/shader.py @@ -121,7 +121,7 @@ class Shader(object): if self.shader == 0: raise GLSLException('faled to create shader object') - all_source = ['\n'.join(self._source())] + all_source = ['\n'.join(se...
Fix shaders to work with python3
py
diff --git a/src/python/dxpy/cli/download.py b/src/python/dxpy/cli/download.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/cli/download.py +++ b/src/python/dxpy/cli/download.py @@ -169,7 +169,7 @@ def download(args): # If the user did not explicitly provide the project, don't pass any # project ...
fix failing test from d<I>d2e<I>ab<I>c0ea<I>aca8c<I>f<I>b<I> dx download did not specify DXFile.NO_PROJECT_HINT when attempting no project was specified on the path
py
diff --git a/asammdf/mdf_v4.py b/asammdf/mdf_v4.py index <HASH>..<HASH> 100644 --- a/asammdf/mdf_v4.py +++ b/asammdf/mdf_v4.py @@ -5945,7 +5945,7 @@ class MDF4(object): if dep_list: if all(isinstance(dep, ChannelArrayBlock) for dep in dep_list): ...
possible workaround for issue #<I> (also for memory='minimum')
py
diff --git a/salt/states/tomcat.py b/salt/states/tomcat.py index <HASH>..<HASH> 100644 --- a/salt/states/tomcat.py +++ b/salt/states/tomcat.py @@ -61,7 +61,7 @@ def war_deployed(name, war, url='http://localhost:8080/manager', the context path to deploy war absolute path to WAR file (should be acc...
docfix in tomcat state
py
diff --git a/spacy/lang/ja/__init__.py b/spacy/lang/ja/__init__.py index <HASH>..<HASH> 100644 --- a/spacy/lang/ja/__init__.py +++ b/spacy/lang/ja/__init__.py @@ -8,16 +8,13 @@ from .stop_words import STOP_WORDS from .tag_map import TAG_MAP from ...attrs import LANG from ...language import Language -from ...tokens i...
Don't set extension attribute in Japanese (closes #<I>)
py
diff --git a/indra/explanation/pathfinding/pathfinding.py b/indra/explanation/pathfinding/pathfinding.py index <HASH>..<HASH> 100644 --- a/indra/explanation/pathfinding/pathfinding.py +++ b/indra/explanation/pathfinding/pathfinding.py @@ -312,7 +312,7 @@ def bfs_search(g, source_node, reverse=False, depth_limit=2, path...
Treat empty terminal_ns as None before
py
diff --git a/bin/otu_to_tax_name.py b/bin/otu_to_tax_name.py index <HASH>..<HASH> 100755 --- a/bin/otu_to_tax_name.py +++ b/bin/otu_to_tax_name.py @@ -73,9 +73,12 @@ def main(): output[idx] = name # Get otu name from otu IDs with open(args.output_fp, "w") as outf: - outf.write("Input\tOu...
Modifies output format Removes the column headers in the output file as they aren't really necessary, and without them users can simply copy and paste the output columns into another file. The program also now writes a blank entry for IDs that are not found. This has a side benefit of dealing nicely with input files ...
py
diff --git a/python/mxnet/module/executor_group.py b/python/mxnet/module/executor_group.py index <HASH>..<HASH> 100755 --- a/python/mxnet/module/executor_group.py +++ b/python/mxnet/module/executor_group.py @@ -273,9 +273,9 @@ class DataParallelExecutorGroup(object): self.data_layouts = None self.labe...
Speed up group executor (#<I>) * Speed up group executor Current implementation is O(n^2), this implementation is O(n) * Speed up group executor Current implementation is O(n^2), this implementation is O(n) * CI
py
diff --git a/pyDESDEO/method/NAUTILUS.py b/pyDESDEO/method/NAUTILUS.py index <HASH>..<HASH> 100755 --- a/pyDESDEO/method/NAUTILUS.py +++ b/pyDESDEO/method/NAUTILUS.py @@ -192,8 +192,8 @@ class NAUTILUSv1(NAUTILUS): #self.zh = list(np.array(self.zh) / 2. + np.array(self.zh_prev) / 2.) #self.zh_prev = t...
We do not calculated lower bounds for last NAUTILUS iteration
py
diff --git a/tests/functional/test_manager.py b/tests/functional/test_manager.py index <HASH>..<HASH> 100644 --- a/tests/functional/test_manager.py +++ b/tests/functional/test_manager.py @@ -40,7 +40,7 @@ class SignalTransferringBody(RawIOBase): def signal_not_transferring(self): self.signal_not_transferr...
Add whence to mock readable seek to fix functional test
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -159,8 +159,13 @@ if USE_CYTHON or USE_SOURCE: extensions = optional_extensions make_dir('geomdl_core') +# Add Enum type support for Python versions < 3.4 +if sys.version_info[:2] < (3, 4): + requir...
Add enum<I> as a dependency
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -33,7 +33,12 @@ needs_sphinx = '1.1' # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx....
Add intersphinx mapping to docs.python.org.
py
diff --git a/pysoundfile.py b/pysoundfile.py index <HASH>..<HASH> 100644 --- a/pysoundfile.py +++ b/pysoundfile.py @@ -626,8 +626,21 @@ class SoundFile(object): position by the same number of frames. Use frames=-1 to read until the end of the file. - For further keyword arguments see the modu...
Duplicate overlapping documentation in read()
py
diff --git a/djes/__init__.py b/djes/__init__.py index <HASH>..<HASH> 100644 --- a/djes/__init__.py +++ b/djes/__init__.py @@ -1,3 +1,3 @@ -__version__ = "0.1.6" +__version__ = "0.1.7" default_app_config = "djes.apps.DJESConfig"
Kicking the version [ci skip]
py
diff --git a/bambi/tests/test_priors.py b/bambi/tests/test_priors.py index <HASH>..<HASH> 100644 --- a/bambi/tests/test_priors.py +++ b/bambi/tests/test_priors.py @@ -44,7 +44,12 @@ def test_prior_factory_init_from_config(): assert 'feta' in pf.dists assert 'hard' in pf.families assert 'yellow' in pf.ter...
improved test coverage of priors.py
py
diff --git a/fbchat/_client.py b/fbchat/_client.py index <HASH>..<HASH> 100644 --- a/fbchat/_client.py +++ b/fbchat/_client.py @@ -944,8 +944,8 @@ class Client(object): """ image_id = str(image_id) data = {"photo_id": str(image_id)} - j = self._get( - "/mercury/attachments/p...
Use POST in Client.fetchImageUrl Reduces the amount of different request methods we're using. Not really sure whether this is actually the best option: - Each request includes `fb_dtsg` and such, so using POST everywhere might be the more secure option? - But at the same time, the request is more opaque, and harder t...
py
diff --git a/tests/test_kqml_reader.py b/tests/test_kqml_reader.py index <HASH>..<HASH> 100644 --- a/tests/test_kqml_reader.py +++ b/tests/test_kqml_reader.py @@ -17,3 +17,10 @@ def test_read_performative(): sreader = BytesIO(s) kr = KQMLReader(sreader) kp = kr.read_performative() + +def test_read_perfor...
Add unicode test for reading performatives
py
diff --git a/tk_tools/tkcalendar.py b/tk_tools/tkcalendar.py index <HASH>..<HASH> 100644 --- a/tk_tools/tkcalendar.py +++ b/tk_tools/tkcalendar.py @@ -3,8 +3,7 @@ Simple calendar using ttk Treeview together with calendar and datetime classes. Borrowed from https://github.com/moshekaplan/tkinter_components -which is...
Creating error to test travisci
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.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', ...
Added py<I> support to setup.py
py
diff --git a/zipline/pipeline/term.py b/zipline/pipeline/term.py index <HASH>..<HASH> 100644 --- a/zipline/pipeline/term.py +++ b/zipline/pipeline/term.py @@ -4,7 +4,7 @@ Base class for Filters, Factors and Classifiers from abc import ABCMeta, abstractproperty from weakref import WeakValueDictionary -from numpy imp...
MAINT: Use full_like instead of full.
py
diff --git a/uproot/interp/auto.py b/uproot/interp/auto.py index <HASH>..<HASH> 100644 --- a/uproot/interp/auto.py +++ b/uproot/interp/auto.py @@ -511,7 +511,7 @@ def interpret(branch, awkwardlib=None, swapbytes=True, cntvers=False, tobject=Tr elif branch._fClassName == b"map<string,string>": ...
More conservative rule for identifying the first half of a pair.
py
diff --git a/salt/state.py b/salt/state.py index <HASH>..<HASH> 100644 --- a/salt/state.py +++ b/salt/state.py @@ -316,8 +316,11 @@ class Compiler(object): if not ishashable(req_val): errors.append(( ...
Fix #<I> The hashable type check was running but not breaking the loop
py
diff --git a/salt/loader.py b/salt/loader.py index <HASH>..<HASH> 100644 --- a/salt/loader.py +++ b/salt/loader.py @@ -1206,6 +1206,13 @@ class Loader(object): grains_data = {} funcs = self.gen_functions() for key, fun in funcs.items(): + if not key.startswith('core.'): + ...
Allow custom grains to overwrite core grains
py
diff --git a/tools/run_tests/artifacts/artifact_targets.py b/tools/run_tests/artifacts/artifact_targets.py index <HASH>..<HASH> 100644 --- a/tools/run_tests/artifacts/artifact_targets.py +++ b/tools/run_tests/artifacts/artifact_targets.py @@ -173,7 +173,7 @@ class PythonArtifact: if 'Python27' in self.py_v...
Change the msvc back
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -908,6 +908,10 @@ class BasicTest(object): rc = subprocess.call(['diff', '-urN', path_a, path_b]) self.assertEqual(0, rc) + def test_canonical_rev(self): + result = self.repo.canonical_rev(self.working_head) + ...
add test for canonical_rev in BasicTest This exposes a problem where GitRepo adds a newline to the end of the result. SvnRepo and HgRepo pass the test.
py
diff --git a/salmon/settings/example/conf.py b/salmon/settings/example/conf.py index <HASH>..<HASH> 100644 --- a/salmon/settings/example/conf.py +++ b/salmon/settings/example/conf.py @@ -1,6 +1,11 @@ import os SECRET_KEY = "{default_key}" +# work-around for https://github.com/saltstack/salt/issues/4454 +SALT_COMMAN...
Adds example of running salt over ssh
py
diff --git a/avatar/models.py b/avatar/models.py index <HASH>..<HASH> 100644 --- a/avatar/models.py +++ b/avatar/models.py @@ -72,6 +72,7 @@ class Avatar(models.Model): class Meta: app_label = 'avatar' + unique_together = ('user', 'primary') def __unicode__(self): return _(six.u('...
added database-level enforcement of unique user+primary pair in Avatar model
py
diff --git a/autopep8.py b/autopep8.py index <HASH>..<HASH> 100755 --- a/autopep8.py +++ b/autopep8.py @@ -122,6 +122,9 @@ else: PROJECT_CONFIG = ('setup.cfg', 'tox.ini', '.pep8') +MAX_PYTHON_FILE_DETECTION_BYTES = 1024 + + def open_with_encoding(filename, encoding=None, mode='r'): """Return opened file with...
Avoid reading too much when detecting Python files This fixes #<I> and also should speed things up.
py
diff --git a/hubconfs/bert_hubconf.py b/hubconfs/bert_hubconf.py index <HASH>..<HASH> 100644 --- a/hubconfs/bert_hubconf.py +++ b/hubconfs/bert_hubconf.py @@ -158,6 +158,19 @@ def bertForPreTraining(*args, **kwargs): This module comprises the BERT model followed by the two pre-training heads - the masked ...
forgot bertForPreTraining
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,8 +22,8 @@ setup( ], url='https://github.com/nats-io/asyncio-nats-streaming', author='Waldemar Quevedo', - author_email='wally@apcera.com', - license='MIT License', + author_email='wally@synadia...
cncf: Update setup.py with Apache 2 license
py
diff --git a/jaraco/postgres/__init__.py b/jaraco/postgres/__init__.py index <HASH>..<HASH> 100644 --- a/jaraco/postgres/__init__.py +++ b/jaraco/postgres/__init__.py @@ -362,7 +362,8 @@ class PostgresServer(object): return subprocess.check_output(cmd) def is_running(self, tries=10): - """Is this server current...
Rewrite docstring with imperative voice
py
diff --git a/timeside/server/views.py b/timeside/server/views.py index <HASH>..<HASH> 100644 --- a/timeside/server/views.py +++ b/timeside/server/views.py @@ -400,10 +400,19 @@ class AnalysisViewSet(UUIDViewSetMixin, viewsets.ModelViewSet): serializer_class = serializers.AnalysisSerializer +class AnalysisTrack...
feat(AnalysisTrack): Add filter by item's uuid
py
diff --git a/intranet/apps/preferences/views.py b/intranet/apps/preferences/views.py index <HASH>..<HASH> 100644 --- a/intranet/apps/preferences/views.py +++ b/intranet/apps/preferences/views.py @@ -281,6 +281,7 @@ def preferences_view(request): user = request.user if request.method == "POST": + logg...
fix(preferences): add a debug statement when preferencs are being changed
py
diff --git a/km3pipe/tests/test_dataclasses.py b/km3pipe/tests/test_dataclasses.py index <HASH>..<HASH> 100644 --- a/km3pipe/tests/test_dataclasses.py +++ b/km3pipe/tests/test_dataclasses.py @@ -490,3 +490,26 @@ class TestTable(TestCase): assert 'c' in tab assert 'd' not in tab + def test_pos_get...
Add tests for pos and dir getters
py
diff --git a/cobra/core/Solution.py b/cobra/core/Solution.py index <HASH>..<HASH> 100644 --- a/cobra/core/Solution.py +++ b/cobra/core/Solution.py @@ -162,9 +162,6 @@ class Solution(SolutionBase): fields.remove('y_dict') return fields - def _repr_html_(self): - return "%s: %f" % (self.mode...
removing __repr_html__ from Solution (#<I>)
py
diff --git a/gitpandas/repository.py b/gitpandas/repository.py index <HASH>..<HASH> 100644 --- a/gitpandas/repository.py +++ b/gitpandas/repository.py @@ -437,6 +437,9 @@ class Repository(object): df = DataFrame(ds, columns=['date', 'rev']) if skip is not None: + if skip == 0: + ...
debugging issue with skips in cumulative blames
py
diff --git a/pointfree.py b/pointfree.py index <HASH>..<HASH> 100644 --- a/pointfree.py +++ b/pointfree.py @@ -39,6 +39,7 @@ __all__ = [ 'pf', 'pfmap', 'pfreduce', + 'pfcollect', 'pfprint_all', 'pfignore_all', ]
Add forgotten pfcollect to __all__
py
diff --git a/round/config.py b/round/config.py index <HASH>..<HASH> 100644 --- a/round/config.py +++ b/round/config.py @@ -1,9 +1,9 @@ #DEFAULT_URL = u"https://api.gem.co" #DEFAULT_NETWORK = u'bitcoin' -DEFAULT_URL = "http://localhost:8999" +#DEFAULT_URL = "http://localhost:8999" DEFAULT_URL = "https://api-sandbox...
Update config.py set it correctly to sandbox and testnet
py
diff --git a/pnc_cli/productversions.py b/pnc_cli/productversions.py index <HASH>..<HASH> 100644 --- a/pnc_cli/productversions.py +++ b/pnc_cli/productversions.py @@ -20,7 +20,7 @@ def create_product_version_object(**kwargs): def version_exists(id): - version_ids = [str(x.id) for x in versions_api.get_all().con...
adjust page size to make sure we don't have failures erroneously
py
diff --git a/salt/modules/service.py b/salt/modules/service.py index <HASH>..<HASH> 100644 --- a/salt/modules/service.py +++ b/salt/modules/service.py @@ -41,6 +41,7 @@ def __virtual__(): 'elementary OS', 'McAfee OS Server', 'Raspbian', + 'SUSE', )) if __grains__.get('os') i...
service: SUSE is not based on sysvinit anymore (cherry picked from commit dd1ec<I>bb<I>c<I>db9a<I>c4c<I>a<I>ef)
py
diff --git a/pymatgen/io/vasp/sets.py b/pymatgen/io/vasp/sets.py index <HASH>..<HASH> 100644 --- a/pymatgen/io/vasp/sets.py +++ b/pymatgen/io/vasp/sets.py @@ -1239,7 +1239,7 @@ class MVLGWSet(DictSet): files_to_transfer=files_to_transfer, **kwargs) -class MVLSlabSet(VaspInputSet): +class MV...
added individual as_dict() to MVLSlabSet
py
diff --git a/Geometry/__init__.py b/Geometry/__init__.py index <HASH>..<HASH> 100644 --- a/Geometry/__init__.py +++ b/Geometry/__init__.py @@ -15,7 +15,7 @@ __author__ = '\n'.join(["Erik O'Shaughnessy", __version__ = "0.0.23" -from .point2 import Point +from .point2 import Point, PointCollection from .ellipse imp...
new Point classes, Polygon class, removed Ungrokkable, exported epsilon
py
diff --git a/openshift/test/functional/conftest.py b/openshift/test/functional/conftest.py index <HASH>..<HASH> 100644 --- a/openshift/test/functional/conftest.py +++ b/openshift/test/functional/conftest.py @@ -40,7 +40,7 @@ def openshift_container(request): time.sleep(1) # TODO: handle waiting ...
add pause to help with test flakes
py
diff --git a/limpyd/collection.py b/limpyd/collection.py index <HASH>..<HASH> 100644 --- a/limpyd/collection.py +++ b/limpyd/collection.py @@ -61,11 +61,21 @@ class CollectionManager(object): conn = self.cls.get_connection() if "keys" in self._lazy_collection: if self._sort is not None: -...
Optimization: do not store when only one set is filtered
py
diff --git a/pyocd/target/pack/cmsis_pack.py b/pyocd/target/pack/cmsis_pack.py index <HASH>..<HASH> 100644 --- a/pyocd/target/pack/cmsis_pack.py +++ b/pyocd/target/pack/cmsis_pack.py @@ -382,7 +382,7 @@ class CmsisPackDevice(object): if i + 1 >= len(packAlgo.sector_sizes): nextStar...
Fix for pack targets with multiple sector sizes.
py
diff --git a/contact_form/tests/test_settings.py b/contact_form/tests/test_settings.py index <HASH>..<HASH> 100644 --- a/contact_form/tests/test_settings.py +++ b/contact_form/tests/test_settings.py @@ -43,4 +43,4 @@ TEMPLATE_CONTEXT_PROCESSORS = ( ) -CRISPY_TEMPLATE_PACK = 'bootstrap' +CRISPY_TEMPLATE_PACK = 'uni...
fixed wrong crispy forms template pack in the tests
py
diff --git a/checks.py b/checks.py index <HASH>..<HASH> 100644 --- a/checks.py +++ b/checks.py @@ -768,13 +768,23 @@ def check_font_has_a_license(fb, file_path): found = False for license in ['OFL.txt', 'LICENSE.txt']: license_path = os.path.join(file_path, license) - if os.path.exists(license_path) or os...
fix logging of success in finding license at the rootdir (issue #<I>)
py
diff --git a/mongotail/jsondec.py b/mongotail/jsondec.py index <HASH>..<HASH> 100644 --- a/mongotail/jsondec.py +++ b/mongotail/jsondec.py @@ -25,6 +25,7 @@ import re, json from bson import ObjectId, DBRef, regex from datetime import datetime +from uuid import UUID REGEX_TYPE = type(re.compile("")) @@ -33,6 +34...
Resolves #7 (UUID not serializable)
py
diff --git a/pykechain/models/activity2.py b/pykechain/models/activity2.py index <HASH>..<HASH> 100644 --- a/pykechain/models/activity2.py +++ b/pykechain/models/activity2.py @@ -240,3 +240,24 @@ class Activity2(Activity): def customize(self, config): # noqa: D401 """Method is deprecated.""" rai...
added configure for activity2 with proper url building
py
diff --git a/fandjango/middleware.py b/fandjango/middleware.py index <HASH>..<HASH> 100644 --- a/fandjango/middleware.py +++ b/fandjango/middleware.py @@ -39,7 +39,7 @@ class FacebookCanvasMiddleware(): app_secret = settings.FACEBOOK_APPLICATION_SECRET_KEY ) - if facebook_data['user_id']: + ...
Fix a bug that caused a ValueError when the signed request did not contain a user id
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup setup( name="openpack", author="Christian Wyglendowski (YouGov)", - version="0.3.4-dev", + version="0.4-dev", packages=['openpack'], install_requires=[ 'lxml',
Bumping to <I> as these recent checkins have substantially changed the API
py
diff --git a/tests/python/twitter/pants/base/test_parse_context.py b/tests/python/twitter/pants/base/test_parse_context.py index <HASH>..<HASH> 100644 --- a/tests/python/twitter/pants/base/test_parse_context.py +++ b/tests/python/twitter/pants/base/test_parse_context.py @@ -16,7 +16,6 @@ import os import pytest -im...
Fixup bad merge, ParseContextTest needs to extend BaseBuildRootTest to properly handle config loading. (sapling split of <I>e7eb5ba<I>ee<I>e<I>eda3fa<I>bc<I>e1e)
py
diff --git a/tornado/locale.py b/tornado/locale.py index <HASH>..<HASH> 100644 --- a/tornado/locale.py +++ b/tornado/locale.py @@ -427,7 +427,8 @@ class CSVLocale(Locale): return message_dict.get(message, message) def pgettext(self, context, message, plural_message=None, count=None): - gen_log.wa...
don't show pgettext en language warning
py
diff --git a/phy/utils/cli.py b/phy/utils/cli.py index <HASH>..<HASH> 100644 --- a/phy/utils/cli.py +++ b/phy/utils/cli.py @@ -9,6 +9,7 @@ #------------------------------------------------------------------------------ import logging +import sys import click @@ -25,6 +26,15 @@ logger = logging.getLogger(__name...
In CLI, only show traceback in debug mode
py
diff --git a/examples/plotting/server/abstractrender.py b/examples/plotting/server/abstractrender.py index <HASH>..<HASH> 100644 --- a/examples/plotting/server/abstractrender.py +++ b/examples/plotting/server/abstractrender.py @@ -16,7 +16,7 @@ https://github.com/ContinuumIO/ArrayManagement """ -output_server("abs...
Modified output name (again...silly me, did it wrong last time)
py
diff --git a/development_fabfile/fabfile/remote.py b/development_fabfile/fabfile/remote.py index <HASH>..<HASH> 100644 --- a/development_fabfile/fabfile/remote.py +++ b/development_fabfile/fabfile/remote.py @@ -7,26 +7,27 @@ from development_fabfile.fabfile.utils import require_server @require_server -def run_rest...
Added require_server decorator to run_git_pull
py
diff --git a/test/test_socketcan_helpers.py b/test/test_socketcan_helpers.py index <HASH>..<HASH> 100644 --- a/test/test_socketcan_helpers.py +++ b/test/test_socketcan_helpers.py @@ -36,7 +36,7 @@ class TestSocketCanHelpers(unittest.TestCase): result = list(find_available_interfaces()) self.assertGrea...
fix use of deprecated test method
py
diff --git a/buildbot/changes/mail.py b/buildbot/changes/mail.py index <HASH>..<HASH> 100644 --- a/buildbot/changes/mail.py +++ b/buildbot/changes/mail.py @@ -5,6 +5,7 @@ Parse various kinds of 'CVS notify' email. """ import os, re import time, calendar +import datetime from email import message_from_file from ema...
add 'revision' to changes created by SyncmailMaildirSource
py
diff --git a/pythonforandroid/toolchain.py b/pythonforandroid/toolchain.py index <HASH>..<HASH> 100644 --- a/pythonforandroid/toolchain.py +++ b/pythonforandroid/toolchain.py @@ -754,4 +754,4 @@ def main(): # NewToolchainCL() if __name__ == "__main__": - new_main() + main()
Removed (now-defunct) references to new_main
py
diff --git a/source/rafcon/gui/helpers/meta_data.py b/source/rafcon/gui/helpers/meta_data.py index <HASH>..<HASH> 100755 --- a/source/rafcon/gui/helpers/meta_data.py +++ b/source/rafcon/gui/helpers/meta_data.py @@ -430,9 +430,9 @@ def resize_of_all_models_in_dict(models_dict, factor, gaphas_editor): resize_sta...
gui helper meta data: fix value access of models_dict to concanate those
py
diff --git a/source/rafcon/gui/controllers/main_window.py b/source/rafcon/gui/controllers/main_window.py index <HASH>..<HASH> 100644 --- a/source/rafcon/gui/controllers/main_window.py +++ b/source/rafcon/gui/controllers/main_window.py @@ -497,10 +497,14 @@ class MainWindowController(ExtendedController): config...
fix(main_window): fix redocking of bars
py
diff --git a/examples/nautilus.py b/examples/nautilus.py index <HASH>..<HASH> 100755 --- a/examples/nautilus.py +++ b/examples/nautilus.py @@ -37,7 +37,7 @@ class ChooseHandler(object): def __init__(self, config, video, subtitles): self.config = config self.video = video - self.subtitles =...
Make sure dict keys are unique in nautilus
py
diff --git a/tests/test_reproduction.py b/tests/test_reproduction.py index <HASH>..<HASH> 100644 --- a/tests/test_reproduction.py +++ b/tests/test_reproduction.py @@ -1,3 +1,4 @@ +import sys import unittest from neat.reproduction import DefaultReproduction @@ -39,7 +40,12 @@ class TestSpawnComputation(unittest.Test...
Add Python version-specific code to species size computation test to account for differences in round() between 2.x and 3.x.
py
diff --git a/tensor2tensor/rl/rl_utils.py b/tensor2tensor/rl/rl_utils.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/rl/rl_utils.py +++ b/tensor2tensor/rl/rl_utils.py @@ -522,7 +522,7 @@ class PlannerAgent(BatchAgent): if count > 0: mean_value = value_sum / count else: - mean_v...
Model-Based RL: Planner fixes. (#<I>) * Fix uct value when no rollouts. * Fix num_rollout vs batch_size for Planner with uniform sampling.
py
diff --git a/examples/deferreds/insert.py b/examples/deferreds/insert.py index <HASH>..<HASH> 100644 --- a/examples/deferreds/insert.py +++ b/examples/deferreds/insert.py @@ -32,10 +32,7 @@ def insertData(coll): for x in xrange(10000): d = coll.insert({"something":x*time.time()}, safe=True) defer...
Consolidated deferred callbacks/errbacks.
py
diff --git a/restclients/cache_implementation.py b/restclients/cache_implementation.py index <HASH>..<HASH> 100644 --- a/restclients/cache_implementation.py +++ b/restclients/cache_implementation.py @@ -232,7 +232,7 @@ class MemcachedCache(object): "data": response.data, ...
Renamed MemcachedCache._get_time to be more specific.
py
diff --git a/entrypoints.py b/entrypoints.py index <HASH>..<HASH> 100644 --- a/entrypoints.py +++ b/entrypoints.py @@ -136,7 +136,7 @@ def iter_files_distros(path=None, repeated_distro='first'): if osp.isdir(folder): ep_path = osp.join(folder, 'EGG-INFO', 'entry_points.txt') ...
Allow only equal signs as config delimiters According to the python [packaging specs](<URL>), the name of an entry point can contain a colon, so this package should restrict keys in config file reading to only equal signs
py
diff --git a/djstripe/views.py b/djstripe/views.py index <HASH>..<HASH> 100644 --- a/djstripe/views.py +++ b/djstripe/views.py @@ -133,7 +133,6 @@ class SyncHistoryView(CsrfExemptMixin, LoginRequiredMixin, View): # ============================================================================ # class ConfirmFormView(...
Remove TODOs that don't make any sense.
py
diff --git a/gns3server/version.py b/gns3server/version.py index <HASH>..<HASH> 100644 --- a/gns3server/version.py +++ b/gns3server/version.py @@ -23,8 +23,8 @@ # or negative for a release candidate or beta (after the base version # number has been incremented) -__version__ = "2.1.20" -__version_info__ = (2, 1, 20,...
Development on <I>dev1
py
diff --git a/MAVProxy/modules/mavproxy_map/srtm.py b/MAVProxy/modules/mavproxy_map/srtm.py index <HASH>..<HASH> 100755 --- a/MAVProxy/modules/mavproxy_map/srtm.py +++ b/MAVProxy/modules/mavproxy_map/srtm.py @@ -129,9 +129,13 @@ class SRTMDownloader(): for continent in continents: '''print "Downl...
map: catch SRTM download errors
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ long_description = ('Ariane CLIP3 (client python 3) is the python implementation ' + IRC on freenode #ariane.echinopsii') setup(name='ariane_clip3', - version='0.1.0-b02', + v...
[ACC-<I>] update some PyPi setup and readme
py
diff --git a/cumulus/storage.py b/cumulus/storage.py index <HASH>..<HASH> 100644 --- a/cumulus/storage.py +++ b/cumulus/storage.py @@ -257,3 +257,38 @@ class CloudFilesStorageFile(File): def seek(self, pos): self._pos = pos + +class ThreadSafeCloudFilesStorage(CloudFilesStorage): + """ + Extends C...
Added ThreadSafeCloudFilesStorage which extends CloudFilesStorage to make it mostly thread safe.
py
diff --git a/netmiko/base_connection.py b/netmiko/base_connection.py index <HASH>..<HASH> 100644 --- a/netmiko/base_connection.py +++ b/netmiko/base_connection.py @@ -63,7 +63,7 @@ class BaseConnection(object): timeout=100, session_timeout=60, auth_timeout=None, - blocking_timeout=8, +...
Increase blocking timeout (#<I>)
py
diff --git a/qa_tests/risk/scenario_risk/test.py b/qa_tests/risk/scenario_risk/test.py index <HASH>..<HASH> 100644 --- a/qa_tests/risk/scenario_risk/test.py +++ b/qa_tests/risk/scenario_risk/test.py @@ -119,10 +119,8 @@ class ScenarioRiskCase3TestCase(risk.FixtureBasedQATestCase): return data def expect...
The expected numbers are different because there is an asset more and the epsilons are different
py
diff --git a/treeherder/settings/base.py b/treeherder/settings/base.py index <HASH>..<HASH> 100644 --- a/treeherder/settings/base.py +++ b/treeherder/settings/base.py @@ -175,6 +175,7 @@ CELERY_ACCEPT_CONTENT = ['json'] CELERY_TASK_SERIALIZER = 'json' CELERY_RESULT_SERIALIZER = 'json' + # default value when no tas...
set amqp as the CELERY_RESULT_BACKEND
py
diff --git a/test/unit/Base/ControllerTest.py b/test/unit/Base/ControllerTest.py index <HASH>..<HASH> 100644 --- a/test/unit/Base/ControllerTest.py +++ b/test/unit/Base/ControllerTest.py @@ -1,4 +1,5 @@ -import OpenPNM, os +import OpenPNM +import os from OpenPNM.Base import Controller
pep8 fix, multiple imports on one line..local pytest didn't catch this not sure if Travis minds.
py
diff --git a/redis_metrics/models.py b/redis_metrics/models.py index <HASH>..<HASH> 100644 --- a/redis_metrics/models.py +++ b/redis_metrics/models.py @@ -94,8 +94,8 @@ class R(object): objects that differ by 1 second each. """ - if since is None: # Default to the last 90 days - s...
change the default time period from <I> to 7 days
py
diff --git a/airflow/providers/microsoft/azure/hooks/wasb.py b/airflow/providers/microsoft/azure/hooks/wasb.py index <HASH>..<HASH> 100644 --- a/airflow/providers/microsoft/azure/hooks/wasb.py +++ b/airflow/providers/microsoft/azure/hooks/wasb.py @@ -172,7 +172,7 @@ class WasbHook(BaseHook): :param blob_name: ...
Fixed wasb hook attempting to create container when getting a blob client (#<I>)
py
diff --git a/openpnm/core/Base.py b/openpnm/core/Base.py index <HASH>..<HASH> 100644 --- a/openpnm/core/Base.py +++ b/openpnm/core/Base.py @@ -2,7 +2,6 @@ import warnings import uuid import numpy as np from collections import namedtuple -from openpnm.models.misc import from_neighbor_throats, from_neighbor_pores fro...
Move model import inside Base methods to avoid circular import
py
diff --git a/tests/runtests.py b/tests/runtests.py index <HASH>..<HASH> 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -160,7 +160,7 @@ TEST_SUITES = { 'path': 'integration/netapi'}, 'cloud_provider': {'display_name': 'Cloud Provider', - 'path': 'integration/cloud/providers'}, + ...
Rename "providers" dir to "clouds" to respect naming convention
py
diff --git a/backbone/__init__.py b/backbone/__init__.py index <HASH>..<HASH> 100644 --- a/backbone/__init__.py +++ b/backbone/__init__.py @@ -1,10 +1,9 @@ """Provides a Backbone.js compatible REST API for your models.""" from backbone.sites import BackboneSite -from backbone.views import BackboneAPIView -VERSI...
Fixed circular import Issue #1 by moving BackboneAPIView import into autodiscover
py
diff --git a/mot/utils.py b/mot/utils.py index <HASH>..<HASH> 100644 --- a/mot/utils.py +++ b/mot/utils.py @@ -330,9 +330,9 @@ def initialize_ranlux(cl_environment, cl_context, nmr_instances, ranlux=RanluxCL def is_scalar(value): """Test if the given value is a scalar. - This function also works with memmapp...
Fixed some regressions due to the previous commit
py
diff --git a/docker/pythonpath_dev/superset_config.py b/docker/pythonpath_dev/superset_config.py index <HASH>..<HASH> 100644 --- a/docker/pythonpath_dev/superset_config.py +++ b/docker/pythonpath_dev/superset_config.py @@ -63,7 +63,7 @@ SQLALCHEMY_DATABASE_URI = "%s://%s:%s@%s:%s/%s" % ( REDIS_HOST = get_env_variable(...
Use the right variable for Celery results in Redis (#<I>)
py
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/classical.py +++ b/openquake/calculators/classical.py @@ -333,8 +333,8 @@ class ClassicalCalculator(base.HazardCalculator): oq.maximum_distance.magdist[sg.trt...
Improved logging [skip CI]
py
diff --git a/openquake/calculators/hazard/general.py b/openquake/calculators/hazard/general.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/hazard/general.py +++ b/openquake/calculators/hazard/general.py @@ -461,6 +461,14 @@ class BaseHazardCalculatorNext(base.CalculatorNext): self.progress = dict...
calcs/hazard/general: Added `hc` property to the base hazard calc (a convenient way of accessing the HazardCalculation object).
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from distutils.core import setup setup( name='django-elasticsearch-debug-toolbar', packages=find_packages(), - version='1.1.0', + version='1.2.0', description='A Django Debug Toolbar panel for Elastics...
Fix the python 3 bytes issues
py
diff --git a/marathon_acme/tests/test_sse_protocol.py b/marathon_acme/tests/test_sse_protocol.py index <HASH>..<HASH> 100644 --- a/marathon_acme/tests/test_sse_protocol.py +++ b/marathon_acme/tests/test_sse_protocol.py @@ -170,10 +170,9 @@ class TestSseProtocol(object): line should be treated as the field and ...
test_sse_protocol: simplify test for line without colon
py
diff --git a/jax/interpreters/parallel.py b/jax/interpreters/parallel.py index <HASH>..<HASH> 100644 --- a/jax/interpreters/parallel.py +++ b/jax/interpreters/parallel.py @@ -17,6 +17,7 @@ from __future__ import division from __future__ import print_function from functools import partial +import warnings import ...
warn, rather than err, on non-split output when a split was requested
py
diff --git a/schedula/ext/dispatcher.py b/schedula/ext/dispatcher.py index <HASH>..<HASH> 100644 --- a/schedula/ext/dispatcher.py +++ b/schedula/ext/dispatcher.py @@ -252,7 +252,10 @@ class _Graphviz(Graphviz): allow_miss=True) if self.arguments: env = s...
fix(directive): Add exception on graphviz patch for sphinx <I>.
py
diff --git a/test/test_dag.py b/test/test_dag.py index <HASH>..<HASH> 100644 --- a/test/test_dag.py +++ b/test/test_dag.py @@ -918,9 +918,9 @@ run: expand=True def testOutputOfDAG(self): '''Test output of dag''' # - for f in ['A1.txt', 'A2.txt', 'C2.txt', 'B2.txt', 'B1.txt', 'B3.txt', 'C1....
No need to remove files for depends workflow
py